MCPcopy Index your code
hub / github.com/angular/angular / patchRxJsFakeAsync

Function patchRxJsFakeAsync

packages/zone.js/lib/rxjs/rxjs-fake-async.ts:13–25  ·  view source on GitHub ↗
(Zone: ZoneType)

Source from the content-addressed store, hash-verified

11import {ZoneType} from '../zone-impl';
12
13export function patchRxJsFakeAsync(Zone: ZoneType): void {
14 Zone.__load_patch('rxjs.Scheduler.now', (global: any, Zone: ZoneType, api: _ZonePrivate) => {
15 api.patchMethod(Scheduler, 'now', (delegate: Function) => (self: any, args: any[]) => {
16 return Date.now.call(self);
17 });
18 api.patchMethod(asyncScheduler, 'now', (delegate: Function) => (self: any, args: any[]) => {
19 return Date.now.call(self);
20 });
21 api.patchMethod(asapScheduler, 'now', (delegate: Function) => (self: any, args: any[]) => {
22 return Date.now.call(self);
23 });
24 });
25}

Callers 1

Calls 1

__load_patchMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…