std1.0.0-beta-7 SafeC docs

std :: async::executor

Function std::async_spawn

#include <std/async/executor.h> source · definition

generic<F, T> struct JoinHandle<T> async_spawn(&Context cx, &AsyncTask<F, T> task)

Spawn 'task' on the executor that is polling 'cx' — from inside a task (tokio::spawn). Panics if that context has no executor.