trio-util icon indicating copy to clipboard operation
trio-util copied to clipboard

Utility library for the Python Trio async/await framework

Results 11 trio-util issues
Sort by recently updated
recently updated
newest added

It would be great to have a Trio `Task` class, a bit like [`asyncio.Task`](https://docs.python.org/3/library/asyncio-task.html#asyncio.Task) or any number of other framework's task classes. This could be a core part of Trio...

I think an async-iterable function which took functions to execute asynchronously and yielded the results as an [`Outcome`](https://github.com/python-trio/outcome) objects would be very useful. I find the `dask`[`as_completed`](https://docs.dask.org/en/latest/futures.html#distributed.as_completed) api to be...

enhancement

Would there be interest in adding a variant of `wait` that only returns if the predicate is still `True`? I find that I sometimes need to write stuff like: ```...

Currently compose and transform functionality take the form of context managers. This is the orderly way, ensuring that derived values don't outlive the scope of their parents, and that callbacks...

API breaker

Subscribe to this issue for notices of backward-incompatible changes. Occasional API changes in trio-util should be expected. The current policy is that such changes may happen within minor version increments...

wait_value(), wait_transition() and transitions() all ensure they block on changes to the current value without an intervening context switch. I.e. the last inspected value will still be in place when...

njs noticed a bug in early exit: > that early exit on line 84 is wrong btw... it won't notice the Cancelled in MultiError([RuntimeError, MultiError([Cancelled, Cancelled])]) https://github.com/groove-x/trio-util/blob/bd32a3e3cdc448ee6ccf66456126c08953927575/src/trio_util/_exceptions.py#L84-L85 also this function...

bug

As part of my work on ipfs/py-datastore I ended up creating two generic utilities that may be useful in the context of this repository as well: * `TeeingReceive{Stream,Channel}`: Wraps an...

This adds type hints to all definitions in the package, as well as the tests. It passes mypy's strict mode, with some caveats: * `_exceptions` will break if you use...

I'm interested in adding the LineReader that @njsmith posted [on StackOverflow](https://stackoverflow.com/a/53576829/349412) to trio-util. I've used in on a couple internal projects. I'm not sure it's 100% baked in its current...