pub fn run<R, F>(f: F) -> R where
    R: Send,
    F: FnOnce(BaggageHandler) -> R,
    F: Send
Expand description

Run an arbitrary closure on the shared worker thread.

Panics

This panics if the provided closure fails or the worker thread is not running, which will happen if a previous operation panicked.