trio
trio copied to clipboard
Trio – a friendly Python library for async concurrency and I/O
I don't know whether or not you need this, as it seems to be occurring because of known problematic generator usage, the original code was faulty and the advice given...
Is there any plan to support serial ? I think UART can also treat as stream, So can we manage it just as socket ?
Since trio seems to be growing support for the Linux specific io_uring including its async disk I/O features, what about POSIX aio support? To might knowledge only FreeBSD (and possibly...
It's the nature of I/O libraries like Trio that their test suites are prone to weird intermittent failures. But they're often hard to track down, and usually the way you...
The following snippet runs without errors and it shouldn't: ```python3 import trio async def enter_scope(scope): scope.__enter__() async def exit_scope(scope): scope.__exit__(None, None, None) async def main(): scope = trio.CancelScope() async with...
Normally I would use [`tempfile`](https://docs.python.org/3/library/tempfile.html) module. But I was wondering if there's an async (trio compatible) alternative. Thanks in advance
Relevant to #1773, #1767, #824. Maybe even #959 and #1208? This PR leverages Windows message-oriented pipes to create objects of type `Channel[Bytes]` (according to the current state of #1208), supplementing...
Currently, `trio._sync` and `trio._core._parking_lot` go to some effort to make our synchronization primitives fair, in the sense that e.g. when a lock is released it always goes to the next...
I haven't given up on catching missing `await`s at runtime (see #495), but another strategy that could be useful is to have a linter/static analyzer that catches them for you....
Implement high level API for UNIX server sockets, based on https://github.com/python-trio/trio/issues/279 This needs some more work but I'd like to invite others for comments at this point.