mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-06-07 21:59:05 +00:00
Updated AsyncFunction (markdown)
parent
8e7bc4d4b5
commit
5ff003a6b5
|
@ -11,6 +11,7 @@ function main(args) {
|
||||||
[5, 4, 3, 2, 1].forEach(function(x) {
|
[5, 4, 3, 2, 1].forEach(function(x) {
|
||||||
new AsyncFunction(function() {
|
new AsyncFunction(function() {
|
||||||
sleep(x * 1000);
|
sleep(x * 1000);
|
||||||
|
console.log(x);
|
||||||
}).run();
|
}).run();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user