MCPcopy Create free account
hub / github.com/angular/angular / onFork

Method onFork

packages/zone.js/lib/zone-spec/wtf.ts:64–73  ·  view source on GitHub ↗
(
      parentZoneDelegate: ZoneDelegate,
      currentZone: Zone,
      targetZone: Zone,
      zoneSpec: ZoneSpec,
    )

Source from the content-addressed store, hash-verified

62 static invokeTaskScope: {[key: string]: WtfEventFn} = {};
63
64 onFork(
65 parentZoneDelegate: ZoneDelegate,
66 currentZone: Zone,
67 targetZone: Zone,
68 zoneSpec: ZoneSpec,
69 ): Zone {
70 const retValue = parentZoneDelegate.fork(targetZone, zoneSpec);
71 WtfZoneSpec.forkInstance!(zonePathName(targetZone), retValue.name);
72 return retValue;
73 }
74
75 onInvoke(
76 parentZoneDelegate: ZoneDelegate,

Callers

nothing calls this directly

Calls 2

zonePathNameFunction · 0.85
forkMethod · 0.65

Tested by

no test coverage detected