Skip to main content

serve

Function serve 

Source
pub async fn serve(opts: Opts) -> Result<()>
Expand description

Run the loop until Ctrl-C, or until the queue drains with Opts::once.

A thin wrapper over serve_until with a stop nothing but Ctrl-C ever sets, so there is one loop body rather than two that drift apart the first time the retry policy changes on only one of them.