[][src]Trait async_nursery::NurseExt

pub trait NurseExt<Out: 'static + Send>: Nurse<Out> {
    fn nurse(
        &self,
        fut: impl Future<Output = Out> + Send + 'static
    ) -> Result<(), NurseErr>; }

Extension trait that allows passing in a future directly. Does the conversion to FutureObj for you.

Required methods

fn nurse(
    &self,
    fut: impl Future<Output = Out> + Send + 'static
) -> Result<(), NurseErr>

Spawn a future and store it's JoinHandle.

Loading content...

Implementors

impl<T: ?Sized, Out> NurseExt<Out> for T where
    T: Nurse<Out>,
    Out: 'static + Send
[src]

Loading content...