Function orphan_crippler::complete[][src]

pub fn complete<R: Any + Send>(result: R) -> Receiver<R>

Notable traits for Receiver<R>

impl<R: Any + Send> Future for Receiver<R> type Output = R;
Expand description

Creates a receiver that automatically resolves.

Example

use orphan_crippler::complete;

let recv = complete::<i32>(6);
assert_eq!(recv.recv(), 6);