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: Michael Birch <birchmd8@gmail.com>
  • Loading branch information
akhi3030 and birchmd authored Feb 28, 2024
1 parent 48757e4 commit 60da3e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion neps/nep-519-yield-execution.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Examples include when a smart contract (`S`) provides MPC signing capabilities p
Today, the NEAR protocol has no sensible way to defer replying to the caller in step 2 above. This proposal proposes adding two following new host functions to the NEAR protocol:

- `promise_yield_create`: this can be called by a contract to indicate to the protocol that it is not ready yet to reply to its caller.
- `resume`: a contract can use this mechanism to indicate to a protocol that it is now ready to reply to a caller that it had deferred earlier.
- `promise_yield_resume`: a contract can use this mechanism to indicate to a protocol that it is now ready to reply to a caller that it had deferred earlier.

If these two host functions were available, then `yield` would be used in step 2 above and `resume` would be used in step 4 above.

Expand Down

0 comments on commit 60da3e1

Please sign in to comment.