repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
refactor: cleanup default arguments handling
[poolifier.git]
/
examples
/
typescript
/
worker.ts
diff --git
a/examples/typescript/worker.ts
b/examples/typescript/worker.ts
index 81d39df3c9eb5c34019dfeeca6e2ab495f6fc982..562b21477e31dd1aaa603a087eb33d3c92b4b130 100644
(file)
--- a/
examples/typescript/worker.ts
+++ b/
examples/typescript/worker.ts
@@
-11,8
+11,7
@@
export interface MyResponse {
class MyThreadWorker extends ThreadWorker<MyData, Promise<MyResponse>> {
constructor () {
class MyThreadWorker extends ThreadWorker<MyData, Promise<MyResponse>> {
constructor () {
- // eslint-disable-next-line @typescript-eslint/promise-function-async
- super((data: MyData) => this.process(data), {
+ super(async (data: MyData) => await this.process(data), {
maxInactiveTime: 60000
})
}
maxInactiveTime: 60000
})
}