Open Sleepful opened 2 years ago
basically, add this at the bottom of example/index.js
example/index.js
setTimeout(() => { q.push(function (cb) { const result = 'another' cb(null, result) }) }, 2800)
this will trigger the cb on q.on('success', cb) when 'another' result is ready.
cb
q.on('success', cb)
'another'
but it does not trigger the cb on q.start(cb) when 'another' result is ready.
q.start(cb)
expected q.start to get triggered, seems like the semantics of autostart implies it.
q.start
autostart
basically, add this at the bottom of
example/index.js
this will trigger the
cb
onq.on('success', cb)
when'another'
result is ready.but it does not trigger the
cb
onq.start(cb)
when'another'
result is ready.expected
q.start
to get triggered, seems like the semantics ofautostart
implies it.