3 ms·
Oh sorry guys I was wrong. This is still synchronous. Here's an asynchronous way of calling N functions in a row: var callback = Pie.callback(3, function() {
by EGreg 16y ago
Oh sorry guys I was wrong. This is still synchronous. Here's an asynchronous way of calling N functions in a row:
var callback = Pie.callback(3, function() {
// do stuff
}); // makes a function that counts down from 3 and when it reaches 0 calls that inner function
async_thing(1, "foo", callback);
some_other_async_thing(2, callback);
third_thing(2, callback);