fn new_task<T, S>(
task: T,
scheduler: S,
id: Id,
) -> (Task<S>, Notified<S>, JoinHandle<T::Output>)
Expand description
This is the constructor for a new task. Three references to the task are
created. The first task reference is usually put into an OwnedTasks
immediately. The Notified is sent to the scheduler as an ordinary
notification.