Type Alias WorkerTraceHost
WorkerTraceHost: (data: unknown, run: () => Promise<void>) => Promise<void> & {
flush(completedSpan?: string): void;
}
Type Declaration
-
- (data: unknown, run: () => Promise<void>): Promise<void>
-
Parameters
- data: unknown
- run: () => Promise<void>
Returns Promise<void>
The wrapped dispatch, plus
flush(): post what is pending NOW. A worker the main thread terminates on a message it is about to send (the pre-pass worker on its final event) calls it first, or the counters die with it.