Function orphan_crippler::two
source · pub fn two<I, R: Any + Send>(input: I) -> (Sender<I>, Receiver<R>)
👎Deprecated: use crossbeam_channel instead
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);