kumo_server_runtime

Function rt_spawn

source
pub fn rt_spawn<FUT, N: AsRef<str>>(
    name: N,
    fut: FUT,
) -> Result<JoinHandle<FUT::Output>>
where FUT: Future + Send + 'static, FUT::Output: Send,
Expand description

Schedule func to run in the main runtime pool, which is named “localset” for legacy reasons.