pub fn complete_promise(promise_id: &PromiseId, data: &[u8]) -> bool
Expand description
Completes the given promise with the given payload. Returns true if the promise was completed, false if the promise was already completed. The payload is passed to the worker that is awaiting the promise.