Skip to main content

flush

Function flush 

Source
pub async fn flush()
Expand description

Flush the global client’s queued events, awaiting the worker’s next delivery attempt. No-op if init_global has not run.

capture only enqueues, and the global client lives in a static whose Drop never runs at process exit, so call this (or shutdown) before exiting to avoid losing buffered events.