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

Method sliceAsync

packages/compiler-cli/preprocessor/src/perf.ts:389–396  ·  view source on GitHub ↗
(kind: SpanKind, fn: () => Promise<T>, fileId?: number)

Source from the content-addressed store, hash-verified

387 }
388
389 async sliceAsync<T>(kind: SpanKind, fn: () => Promise<T>, fileId?: number): Promise<T> {
390 const token = this.begin(kind, fileId);
391 try {
392 return await fn();
393 } finally {
394 this.end(token);
395 }
396 }
397
398 newFileId(path: string): number {
399 const fileId = this.nextFileId++;

Callers

nothing calls this directly

Calls 3

beginMethod · 0.95
endMethod · 0.95
fnFunction · 0.50

Tested by

no test coverage detected