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

pub trait ThrFiberFuture: ThrToken {
    pub 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
, { ... } }

Extends ThrToken types with add_future method.

Provided methods

pub 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 completion of the fiber.

Loading content...

Implementors

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

Loading content...