Method
slice
(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
Tested by
no test coverage detected