Skip to main content

await_value

Function await_value 

Source
pub fn await_value(awaited: Value, pos: u32) -> Result<Value, String>
Expand description

The AWAIT op body (runs inside the async coroutine): suspend, yielding the awaited value; on resume, unwrap the settlement packet (throwing on reject).

pos is the await keyword’s source position, which the driver records on the body’s result promise while it is suspended there.