groove-x / trio-util

Utility library for the Python Trio async/await framework
https://trio-util.readthedocs.io/
MIT License
68 stars 6 forks source link

race condition in compose_values() #13

Closed belm0 closed 3 years ago

belm0 commented 3 years ago

When the context manager body is entered, the background tasks responsible for listening to the individual async value changes may not yet be running, so events may be missed.

https://github.com/groove-x/trio-util/blob/1650e00e6907f9f65150dad77649522f01b4de92/src/trio_util/_async_value.py#L229-L240