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

Method sliceAsync

packages/compiler-cli/preprocessor/src/perf.ts:188–188  ·  view source on GitHub ↗

* Like `slice`, for a driver-level await during which nothing else runs on the main thread * (the `AWAITING_KINDS`). The section ends when the promise settles.

(kind: SpanKind, fn: () => Promise<T>, fileId?: number)

Source from the content-addressed store, hash-verified

186 * (the `AWAITING_KINDS`). The section ends when the promise settles.
187 */
188 sliceAsync<T>(kind: SpanKind, fn: () => Promise<T>, fileId?: number): Promise<T>;
189 /** Records a finished synchronous section that ran from `startUs` until now. */
190 record(kind: SpanKind, startUs: number): void;
191 /** Allocates an id for a file and begins its `ngp.File` async slice. */

Callers 5

runFunction · 0.65
timeEachNextFunction · 0.65
perf_spec.tsFile · 0.65
prepareChunkMethod · 0.65
initializeMethod · 0.65

Implementers 1

RecordingTracerpackages/compiler-cli/preprocessor/src

Calls

no outgoing calls

Tested by

no test coverage detected