Skip to content

Commit 8fdaaf5

Browse files
committed
restore comment
1 parent 933b1c3 commit 8fdaaf5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/trio/_core/_asyncgens.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ def firstiter(agen: AsyncGeneratorType[object, NoReturn]) -> None:
7373
# An async generator first iterated outside of a Trio
7474
# task doesn't belong to Trio. Probably we're in guest
7575
# mode and the async generator belongs to our host.
76+
# A strong set of ids is one of the only good places to
77+
# remember this fact, at least until
78+
# https://github.com/python/cpython/issues/85093 is implemented.
7679
self.foreign.add(id(agen))
7780
if self.prev_hooks.firstiter is not None:
7881
self.prev_hooks.firstiter(agen)

0 commit comments

Comments
 (0)