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

a re-implementation of the asyncio mainloop on top of Trio

Results 34 trio-asyncio issues
Sort by recently updated
recently updated
newest added
trafficstars

Currently, trio-asyncio doesn't install async generator hooks, so asyncio tasks get Trio's hooks, which try to close asyncio's async generators in Trio context. We should install our own hooks which...

The following program raises a KeyboardInterrupt from an asyncio context. It prints ``` MARK MARK MARK raising ``` and then hangs. The use of the nursery here is just to...

uvicorn relies on this behavior: https://github.com/encode/uvicorn/blob/77468df/uvicorn/main.py#L568-L577. Running the code in #84 results in the following traceback on Windows: ``` {PATH}trio_asyncio\_base.py:20: TrioDeprecationWarning: trio.hazmat is deprecated since Trio 0.15.0; use trio.lowlevel instead...

A user on Gitter discovered that this simple-seeming code doesn't work: ``` from asyncio import get_running_loop from trio import run from trio_asyncio import aio_as_trio, open_loop async def main(): async def...

Trio-asyncio runs in a separate Trio task. The current instrumentation hooks for Trio capture when that task is running (or not), but not what it's doing internally. Thus I probably...

We've lost Windows coverage in codecov, as noticed by #77. It's probably an issue with codecov path merging: * The coverage reports uploaded by AppVeyor do cover `import _winapi` at...

So we don't discover things like #77 in the context of unrelated changes.

Moved from https://github.com/python-trio/trio/issues/552#issuecomment-401646008 ```python import asyncio from functools import partial import trio import trio_asyncio from dask.distributed import Client async def f(): async with trio_asyncio.open_loop() as loop: client = await loop.run_asyncio(partial(Client,...

* `test_base_events.py::RunningLoopTests`: `test_running_loop_within_a_loop`: hangs * `test_base_events.py::BaseEventLoopWithSelectorTests`: `test_log_slow_callbacks`: fails on 3.5 and 3.6 * `test_tasks.py::RunCoroutineThreadsafeTests`: * `test_run_coroutine_threadsafe_task_factory_exception`: fails on 3.7 and 3.8 * `test_run_coroutine_threadsafe_task_cancelled`: fails on 3.8 * `test_run_coroutine_threadsafe_with_timeout`: fails on...

I'm trying to make prompt-toolkit (which has asyncio support) work with trio through this library. I don't actually know what I'm doing. :) I had a persistent issue due to...