repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add benchmark script (#104)
[poolifier.git]
/
src
/
workers.ts
diff --git
a/src/workers.ts
b/src/workers.ts
index 57f2fd95bef547161ca510078a5191dd6bd0ee9b..dc4f319419a7d2b31b9402e6c8e5ad59590355ca 100644
(file)
--- a/
src/workers.ts
+++ b/
src/workers.ts
@@
-108,6
+108,7
@@
export class ThreadWorker<Data = any, Response = any> extends AsyncResource {
.then(res => {
this.parent?.postMessage({ data: res, id: value.id })
this.lastTask = Date.now()
+ return null
})
.catch(e => {
this.parent?.postMessage({ error: e, id: value.id })