Skip to main content

spawn_task

Function spawn_task 

Source
pub fn spawn_task<T>(
    task: Arc<T>,
    context: Context,
    buffer: usize,
) -> (StreamReceiver, JoinHandle<Result<TaskResult>>)
where T: Task + Send + Sync + 'static,
Expand description

Run a single Task, streaming its emit_* calls out through the returned receiver.