[][src]Trait async_nursery::LocalNurseExt

pub trait LocalNurseExt<Out: 'static>: LocalNurse<Out> {
    fn nurse_local(
        &self,
        fut: impl Future<Output = Out> + 'static
    ) -> Result<(), NurseErr>; }

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

Required methods

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

Spawn a !Send future and store it's JoinHandle.

Loading content...

Implementors

impl<T: ?Sized, Out> LocalNurseExt<Out> for T where
    T: LocalNurse<Out>,
    Out: 'static, 
[src]

Loading content...