[][src]Function suspend::sender_task

pub fn sender_task<'t, T: Send + 't>(
) -> (Sender<T>, Task<'t, Result<T, RecvError>>)

Create a new oneshot message pair consisting of a Sender and a Task<T>. Once Sender::send is called or the Sender is dropped, the Task will resolve to the sent message or a RecvError. Requires the oneshot feature.