Function std::async_spawn
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.
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.