Results 955 comments of Thomas Grainger

yep it's the missing calls to `set_event_loop()` this patch fixes both `test_default_loop` and `tests/test_loop.py::TestCase::test_on_startup_hook` for me: https://github.com/aio-libs/aiohttp/blob/19d8c96aea383b7856e46cd285e52428a56a207b/aiohttp/test_utils.py#L415-L424

looks like this is still happening - it seems because the call to set_event_loop is deferred to `asyncio.Runner.run` https://github.com/python/cpython/issues/95736

> uvloop does not support Windows at the moment Duplicate of https://github.com/MagicStack/uvloop/issues/14

Hmm, it might be worth updating to cython 3 instead?

@fantix I think the issue here is that uvloop should not use uv_idle_callback for call_soon, Instead uvloop should schedule a timer for running with uv_timer_init set at `-1` called "call_soon_handle"...

```python import asyncio import uvloop from functools import partial async def main(): loop = asyncio.get_running_loop() loop.call_later(-0.5, partial(print, "4", end="")) loop.call_later(-1, partial(print, "3", end="")) loop.call_soon(partial(print, "1", end="")) await asyncio.sleep(0) print("2", end="")...

@fantix can I get a review on this please?

> @graingert may I ask for a review pls? Just doing a eyeball pass at the moment - will do a proper review later. My gut feeling is that I...

> > @graingert may I ask for a review pls? > > Just doing a eyeball pass at the moment - will do a proper review later. My gut feeling...