Function golem_rust::bindings::golem::api::host::complete_promise
source ยท pub fn complete_promise(promise_id: &PromiseId, data: &[u8]) -> boolExpand 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.