repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge dependabot/npm_and_yarn/examples/typescript/http-client-pool/poolifier-2.6...
[poolifier.git]
/
examples
/
typescript
/
worker.ts
diff --git
a/examples/typescript/worker.ts
b/examples/typescript/worker.ts
index caf6e3ac4787fb2389da3464560a9f684c751c7b..81d39df3c9eb5c34019dfeeca6e2ab495f6fc982 100644
(file)
--- a/
examples/typescript/worker.ts
+++ b/
examples/typescript/worker.ts
@@
-18,7
+18,7
@@
class MyThreadWorker extends ThreadWorker<MyData, Promise<MyResponse>> {
}
private async process (data: MyData): Promise<MyResponse> {
- return await new Promise(
(resolve)
=> {
+ return await new Promise(
resolve
=> {
setTimeout(() => {
resolve({ message: 'Hello from Worker :)', data })
}, 10000)