First Commit - API Tested and functional
This commit is contained in:
11
.env/Lib/site-packages/uvicorn/loops/asyncio.py
Normal file
11
.env/Lib/site-packages/uvicorn/loops/asyncio.py
Normal file
@@ -0,0 +1,11 @@
|
||||
from __future__ import annotations
|
||||
|
||||
import asyncio
|
||||
import sys
|
||||
from collections.abc import Callable
|
||||
|
||||
|
||||
def asyncio_loop_factory(use_subprocess: bool = False) -> Callable[[], asyncio.AbstractEventLoop]:
|
||||
if sys.platform == "win32" and not use_subprocess:
|
||||
return asyncio.ProactorEventLoop
|
||||
return asyncio.SelectorEventLoop
|
||||
Reference in New Issue
Block a user