repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Benchmark: remove unneeded then at promise handling (#136)
[poolifier.git]
/
benchmarks
/
myBench.js
diff --git
a/benchmarks/myBench.js
b/benchmarks/myBench.js
index 24ccba53aee46614ed6128efe74b8637f9e010af..a69de002aab4c6840e03601b34546e3b54c29056 100644
(file)
--- a/
benchmarks/myBench.js
+++ b/
benchmarks/myBench.js
@@
-110,10
+110,6
@@
async function workerpoolTest () {
.exec('yourFunction', [workerData])
.then(res => {
executions++
- return null
- })
- .catch(err => console.error(err))
- .then(res => {
if (tasks === executions) {
return console.log(
`workerpool take ${