Skip to main content

flush_blocking

Function flush_blocking 

Source
pub fn flush_blocking(deadline: Duration) -> FlushOutcome
Expand description

Flush whatever is buffered, waiting at most deadline.

Blocking, so async callers must hand this to spawn_blocking and bound it — SHUTDOWN_FLUSH_TIMEOUT is the teardown budget. Consent is re-resolved from disk inside the writer thread before anything is sent.

Returns FlushOutcome::Empty when unarmed.