Skip to content

Commit

Permalink
Update neps/nep-519-yield-execution.md
Browse files Browse the repository at this point in the history
Co-authored-by: Simonas Kazlauskas <github@kazlauskas.me>
  • Loading branch information
akhi3030 and nagisa authored Mar 7, 2024
1 parent 577970e commit 13ebeb6
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion neps/nep-519-yield-execution.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,12 +98,18 @@ pub fn promise_yield_create(
/// additional optional blob of arguments that should be passed to the callback
/// that will be resumed. These are available via the `promise_result` host
/// function.
///
/// The function returns `1` if submitting the payload was successful. This
/// guarantees that the yielded callback will be executes with one of the
/// successfully submitted payloads as the input. Otherwise (e.g. if the yield
/// receipt has already timed out) `0` will be returned, indicating that this
/// payload could not be submitted successfully.
pub fn promise_yield_resume(
data_id_len: u64,
data_id_ptr: u64,
payload_len: u64,
payload_ptr: u64,
) -> ();
) -> u32;
```

## Reference Implementation
Expand Down

0 comments on commit 13ebeb6

Please sign in to comment.