Function orphan_crippler::two[][src]

pub fn two<I, R: Any + Send>(input: I) -> (Sender<I>, Receiver<R>)
Expand description

Creates a sender and a receiver for the two-way oneshot (two) channel.

Example

use orphan_crippler::two;

let (sender, receiver) = two::<i32, i32>(16);