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

Method slice

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

Source from the content-addressed store, hash-verified

378 }
379
380 slice<T>(kind: SpanKind, fn: () => T, fileId?: number): T {
381 const token = this.begin(kind, fileId);
382 try {
383 return fn();
384 } finally {
385 this.end(token);
386 }
387 }
388
389 async sliceAsync<T>(kind: SpanKind, fn: () => Promise<T>, fileId?: number): Promise<T> {
390 const token = this.begin(kind, fileId);

Callers

nothing calls this directly

Calls 3

beginMethod · 0.95
endMethod · 0.95
fnFunction · 0.50

Tested by

no test coverage detected