Skip to content

fix: async indicator in canon yield #528

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions design/mvp/CanonicalABI.md
Original file line number Diff line number Diff line change
Expand Up @@ -3424,10 +3424,10 @@ validation specifies:

Calling `$f` calls `Task.yield_` to allow other tasks to execute:
```python
async def canon_yield(sync, task):
async def canon_yield(async_, task):
trap_if(not task.inst.may_leave)
trap_if(task.opts.callback and not sync)
event_code,_,_ = await task.yield_(sync)
trap_if(task.opts.callback and not async_)
event_code,_,_ = await task.yield_(async_)
match event_code:
case EventCode.NONE:
return [0]
Expand Down