Skip to main content

run_blocking

Function run_blocking 

Source
pub fn run_blocking()
Expand description

Blocks the calling thread until a shutdown signal arrives, then drains infrastructure and exits.

This is the standard way to keep a service process alive when it does not serve incoming requests directly (such as a worker-only service).