MCPcopy
hub / github.com/cujojs/when / async

Function async

test/node-test.js:32–36  ·  view source on GitHub ↗
(cb)

Source from the content-addressed store, hash-verified

30 'the returned promise': {
31 'should be resolved with the 2nd arg to the callback': function() {
32 function async(cb) {
33 setTimeout(function() {
34 cb(null, sentinel);
35 }, 100);
36 }
37
38 var promise = nodefn.apply(async);
39 return promise.then(function(value) {

Callers 1

delay-handled.jsFile · 0.50

Calls 2

setTimeoutFunction · 0.85
callbackFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…