Trait drone_core::fib::ThrFiberFuture[][src]

pub trait ThrFiberFuture: ThrToken {
    fn add_future<F, Y, T>(self, fib: F) -> FiberFuture<T>

Notable traits for FiberFuture<T>

impl<T> Future for FiberFuture<T> type Output = T;

    where
        F: Fiber<Input = (), Yield = Y, Return = T>,
        Y: YieldNone,
        F: Send + 'static,
        T: Send + 'static
, { ... }
fn add_future_factory<C, F, Y, T>(self, factory: C) -> FiberFuture<T>

Notable traits for FiberFuture<T>

impl<T> Future for FiberFuture<T> type Output = T;

    where
        C: FnOnce() -> F + Send + 'static,
        F: Fiber<Input = (), Yield = Y, Return = T>,
        Y: YieldNone,
        F: 'static,
        T: Send + 'static
, { ... } }

Extends ThrToken types with add_future and add_future_factory methods.

Provided methods

fn add_future<F, Y, T>(self, fib: F) -> FiberFuture<T>

Notable traits for FiberFuture<T>

impl<T> Future for FiberFuture<T> type Output = T;
where
    F: Fiber<Input = (), Yield = Y, Return = T>,
    Y: YieldNone,
    F: Send + 'static,
    T: Send + 'static, 
[src]

Adds the fiber fib to the fiber chain and returns a future, which resolves on fiber completion.

fn add_future_factory<C, F, Y, T>(self, factory: C) -> FiberFuture<T>

Notable traits for FiberFuture<T>

impl<T> Future for FiberFuture<T> type Output = T;
where
    C: FnOnce() -> F + Send + 'static,
    F: Fiber<Input = (), Yield = Y, Return = T>,
    Y: YieldNone,
    F: 'static,
    T: Send + 'static, 
[src]

Adds the fiber returned by factory to the fiber chain and returns a future, which resolves on fiber completion.

This method is useful for non-Send fibers.

Loading content...

Implementors

impl<T: ThrToken> ThrFiberFuture for T[src]

Loading content...