get_yield

Function get_yield 

Source
pub fn get_yield<A: Any>() -> Option<A>
👎Deprecated since 0.6.18: please use scope version instead
Expand description

get the passed in para

Examples found in repository?
examples/get_yield.rs (line 8)
4fn sum(a: u32) -> u32 {
5    let mut sum = a;
6    let mut recv: u32;
7    while sum < 200 {
8        recv = get_yield().unwrap();
9        yield_with(sum);
10        sum += recv;
11    }
12
13    sum
14}