Skip to content

Commit

Permalink
Add comment clarifying the value of next_send
Browse files Browse the repository at this point in the history
  • Loading branch information
oremanj committed Jul 14, 2023
1 parent b121a83 commit 1d2fc15
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions trio/_core/_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -2211,6 +2211,10 @@ def my_done_callback(run_outcome):
"Guest runner blocked before system nursery was initialized"
)
)
# next_send should be the return value of
# IOManager.get_events() if no I/O was waiting, which is
# platform-dependent. We don't actually check for I/O during
# this init phase because no one should be expecting any yet.
next_send = 0 if sys.platform == "win32" else ()
else: # pragma: no cover
guest_state.unrolled_run_gen.throw(
Expand Down

0 comments on commit 1d2fc15

Please sign in to comment.