Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion design/mvp/CanonicalABI.md
Original file line number Diff line number Diff line change
Expand Up @@ -933,7 +933,7 @@ external I/O. This is emulated in the Python code below by waiting on an
immediately-resolved future, which calls the `OnBlock` callback, which allows
control flow to switch to other `asyncio.Task`s.
```python
async def yield_(self, sync) -> bool:
async def yield_(self, sync) -> EventTuple:
if self.state == Task.State.PENDING_CANCEL:
self.state = Task.State.CANCEL_DELIVERED
return (EventCode.TASK_CANCELLED, 0, 0)
Expand Down
2 changes: 1 addition & 1 deletion design/mvp/canonical-abi/definitions.py
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,7 @@ async def wait_for_event(self, waitable_set, sync) -> EventTuple:
waitable_set.num_waiting -= 1
return e

async def yield_(self, sync) -> bool:
async def yield_(self, sync) -> EventTuple:
if self.state == Task.State.PENDING_CANCEL:
self.state = Task.State.CANCEL_DELIVERED
return (EventCode.TASK_CANCELLED, 0, 0)
Expand Down