pub fn poll_promise(promise_id: &PromiseId) -> Option<Vec<u8>>
Checks whether the given promise is completed. If not, it returns None. If the promise is completed, it returns the payload passed to the promise completion.