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.
flush()
Synchronous sub-stage spans; -1 and a no-op before tracing is enabled.
Drain finished work; optionally finish all open spans with the given name before a terminal event.
Optional
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.