Comments (5)
I published it on v2.5.1
, could you check it? Thanks! 😸
from neo-async.
This version can be executed correctly. Thanks! 👍🏻
from neo-async.
Thanks for the issue!
I have the test case and can't reproduce it.
Which version are you using? Also, do you have any code to reproduce it?
neo-async/test/controlFlow/test.auto.js
Lines 320 to 334 in 3cfae1d
from neo-async.
neo-async v2.5
const async = require('neo-async');
async.auto({
task1: function(callback) {
setTimeout(()=>{callback('error')}, 1000)
},
task2: function(callback) {
setTimeout(()=>{callback(false)}, 2000)
},
task3: ['task1', 'task2', function(callback) {
setTimeout(()=>{callback(false)}, 2000)
}]
}, function(err) {
if(err) {
return console.log('err: ', err)
}
console.log('done')
});
/usr/local/bin/node /Users/neo-async-test.js
err: error
/Users/node_modules/.2.5.0@neo-async/async.js:8167
throw new Error('async.auto task has cyclic dependencies');
^
Error: async.auto task has cyclic dependencies
at proceedQueue (/Users/node_modules/.2.5.0@neo-async/async.js:8167:17)
at taskComplete (/Users/node_modules/.2.5.0@neo-async/async.js:8187:7)
at done (/Users/node_modules/.2.5.0@neo-async/async.js:8153:9)
at Timeout.setTimeout [as _onTimeout] (/Users/neo-async-test.js:8:25)
at ontimeout (timers.js:475:11)
at tryOnTimeout (timers.js:310:5)
at Timer.listOnTimeout (timers.js:270:5)
async v2.1.4
const async = require('async');
async.auto({
task1: function(callback) {
setTimeout(()=>{callback('error')}, 1000)
},
task2: function(callback) {
setTimeout(()=>{callback(false)}, 2000)
},
task3: ['task1', 'task2', function(callback) {
setTimeout(()=>{callback(false)}, 2000)
}]
}, function(err) {
if(err) {
return console.log('err: ', err)
}
console.log('done')
});
err: error
Process finished with exit code 0
from neo-async.
@e174596549
I can reproduce it!
I'll fix it soon, thanks! 😄
from neo-async.
Related Issues (20)
- Fortify Security Scan Shows Null Security Key Issue HOT 1
- Callback was already called. HOT 1
- Is it possible to cancel running task ? HOT 1
- Add optional error handler to queues
- neo-async 2.0 is incompatible with 1.8 HOT 4
- Require Individual methods HOT 2
- Callback was already called in async.js HOT 4
- Missing LICENSE file in npm package HOT 2
- possible error in the retry() function HOT 1
- (sync) iterator called after finish with Sets HOT 3
- FYI: "event-stream" dependency is backdoored, apparently starting from v3.3.5 HOT 3
- difference between angelfall and waterfall HOT 2
- Spelling mistake in 'use strict' HOT 1
- mapLimit of Generator doesn't invoke final callback HOT 1
- Does it support ie 11? HOT 3
- Important - Avoid Array.prototype.shift/unshift HOT 1
- neo-async/async.js:throwError doesnt display very useful error for all cases. HOT 5
- Undocumented breaking change (now incompatible with caolan/async) HOT 1
- webpack deprecation warning HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from neo-async.