Function bicoro::send[][src]

pub fn send<'a, I, O>(o: O) -> Coroutine<'a, I, O, ()>
Expand description

Yields a value to the executor

This pauses until the executor uses it

use bicoro::*;
let co :Coroutine<(),&str,()> = send("hello");