pub async fn await_promise(promise_id: &PromiseId) -> Vec<u8> ⓘ
Awaits a promise.
If only promises or timeouts are awaited simultaneously, the agent is going to be suspended until any of them completes.