You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
idea: use sys.set_coroutine_wrapper in the test suite to enforce assert_yields *everywhere* #152
There are some async functions in trio (esp. in the test suite) that intentionally don't have any checkpoints. The way to handle this I think is to annotate those with @no_checkpoint or something (which just sets a flag that the enforce_checkpoint function would look for), and this would actually be a good piece of executable documentation, as well as being essentially free at runtime.
Activity
njsmith commentedon May 14, 2017
There are some async functions in trio (esp. in the test suite) that intentionally don't have any checkpoints. The way to handle this I think is to annotate those with
@no_checkpointor something (which just sets a flag that theenforce_checkpointfunction would look for), and this would actually be a good piece of executable documentation, as well as being essentially free at runtime.