-
-
Notifications
You must be signed in to change notification settings - Fork 7
Closed
Description
import trio
# Seems like the inner context manager 'hides' the checkpoint.
async def does_contain_checkpoints():
with trio.fail_after(1): # false-alarm TRIO100
with trio.CancelScope(): # or any other context manager
await trio.sleep_forever()
# -------------------------
async def elems():
await trio.lowlevel.checkpoint()
print("here")
return ["elem1", "elem2"]
async def await_in_comp_target():
return (print(x) for x in await elems()) # false-alarm TRIO910
trio.run(await_in_comp_target) # prints "here", although not any elementsReactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels