Skip to main content

spawn

Function spawn 

Source
pub fn spawn()
Expand description

Start the heartbeat on the current tokio runtime when systemd asks for one.

Call it from inside the runtime before any other work, so the heartbeat also covers bring-up and shutdown drain. The task runs until the runtime stops.