Skip to main content

spawn_shutdown_handler

Function spawn_shutdown_handler 

Source
pub fn spawn_shutdown_handler(proxy: &Arc<NntpProxy>) -> Receiver<()>
Expand description

Spawn graceful shutdown handler

Waits for shutdown signal, then:

  1. Sends shutdown notification via channel
  2. Calls graceful_shutdown() on proxy

Returns the shutdown receiver channel.