pquentin on master
Enable random test ordering in … (compare)
oremanj on master
Bump version to 0.4.0 for relea… Bump version to 0.4.0+dev post … Merge pull request #23 from ore… (compare)
pquentin on master
Use GitHub Actions for macOS CI… (compare)
njsmith on master
Update mypy to 0.750 Rearrange for better inference blacken and 2 more (compare)
question, I'm sitting and reading the docs, and it says to not, as a general rule, pass a timeout parameter. Is there an idiomatic way of applying a timeout to the entry of a context manager block rather than all operations within it. I'm thinking specifically of something like
with connect_to_something() as conn:
await do_many_things_with_conn()
Its unclear to me how I would apply a cancellation scope to the conn context manager from calling code without passing in a timeout.
@rzeigler It's also possible to do the following:
-create a 'timeout' send/receive channel pair
-launch a task that sleeps for N seconds, then send a message to the timeout send channel
-inside the nursery, wait for messages on the timeout receive channel and call cancel_scope on the nursery when a message arrives