[][src]Function smartpool::push::push_future

pub fn push_future<I, E, F: Future<Item = I, Error = E>>(
    source: F
) -> (PushFutureSend<I, E, F>, PushFutureRecv<I, E>)

Push futures are futures based on interior mutability and shared memory, where one tasks produces a value, and sends it to another task. This is generally less efficient that the normal way in which Rust's futures ecosystem occurs. The purpose of this module is not to become a normal way of executing futures. Rather, this module is created to allow for tasks which execute across several channels, or even several pools, or with internal forking and concurrency.

Instead of using this module directly, simply use the exec_push method in Exec and ExecParam.