Skip to main content

flush

Function flush 

Source
pub fn flush()
Expand description

Waits up to one second for Encore’s queued console events to be written. Does not initialize the runtime. Call before exit when using logger or crate::telemetry::tracing::logs_layer standalone; runtime shutdown flushes automatically. Queue overflow or blocked output may still lose events.