Skip to main content

gen_yield

Function gen_yield 

Source
pub fn gen_yield(v: Value) -> Result<Value, String>
Expand description

yield v — suspend the running generator, handing v to the resumer; returns the value the next gen_resume(x) supplies (a .next(x) argument).