Skip to content

Commit

Permalink
restore comment
Browse files Browse the repository at this point in the history
  • Loading branch information
graingert committed Nov 1, 2024
1 parent 933b1c3 commit 8fdaaf5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/trio/_core/_asyncgens.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ def firstiter(agen: AsyncGeneratorType[object, NoReturn]) -> None:
# An async generator first iterated outside of a Trio
# task doesn't belong to Trio. Probably we're in guest
# mode and the async generator belongs to our host.
# A strong set of ids is one of the only good places to
# remember this fact, at least until
# https://github.com/python/cpython/issues/85093 is implemented.
self.foreign.add(id(agen))
if self.prev_hooks.firstiter is not None:
self.prev_hooks.firstiter(agen)
Expand Down

0 comments on commit 8fdaaf5

Please sign in to comment.