MCPcopy
hub / github.com/angular/angular / func

Function func

packages/zone.js/test/extra/bluebird.spec.ts:376–380  ·  view source on GitHub ↗
(cb: Function)

Source from the content-addressed store, hash-verified

374
375 it('bluebird promise promisify method should be in zone and treated as microTask', (done) => {
376 const func = (cb: Function) => {
377 setTimeout(() => {
378 cb(null, 'test');
379 }, 10);
380 };
381
382 const promiseFunc = BluebirdPromise.promisify(func);
383 zone.run(() => {

Callers

nothing calls this directly

Calls 2

setTimeoutFunction · 0.85
cbFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…