repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Change killBehaviorEnumeration to killBehaviorTypes
[poolifier.git]
/
tests
/
worker
/
thread
/
asyncWorker.js
diff --git
a/tests/worker/thread/asyncWorker.js
b/tests/worker/thread/asyncWorker.js
index 59a900e914404f89b1cedd28ed75330283e2d723..a6a9590d44334b5d99348bccd47cb5f7a78a39d2 100644
(file)
--- a/
tests/worker/thread/asyncWorker.js
+++ b/
tests/worker/thread/asyncWorker.js
@@
-1,5
+1,5
@@
'use strict'
'use strict'
-const { ThreadWorker, killBehavior
Enumeration
} = require('../../../lib/index')
+const { ThreadWorker, killBehavior
Types
} = require('../../../lib/index')
async function sleep (data) {
return new Promise((resolve, reject) => {
async function sleep (data) {
return new Promise((resolve, reject) => {
@@
-10,5
+10,5
@@
async function sleep (data) {
module.exports = new ThreadWorker(sleep, {
maxInactiveTime: 500,
async: true,
module.exports = new ThreadWorker(sleep, {
maxInactiveTime: 500,
async: true,
- killBehavior: killBehavior
Enumeration
.HARD
+ killBehavior: killBehavior
Types
.HARD
})
})