MCPcopy
hub / github.com/angular/angular / resolver

Function resolver

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

Source from the content-addressed store, hash-verified

425
426 it('bluebird promise fromCallback method should be in zone', (done) => {
427 const resolver = (cb: Function) => {
428 setTimeout(() => {
429 cb(null, 'test');
430 }, 10);
431 };
432
433 zone.run(() => {
434 BluebirdPromise.fromCallback(resolver).then((r: string) => {

Callers 2

combineResolversFunction · 0.85
getResolverFunction · 0.85

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…