freqtrade_origin/freqtrade/system/asyncio_config.py
2024-10-04 11:05:49 +08:00

11 lines
236 B
Python

import sys
def asyncio_setup() -> None: # pragma: no cover
# Set eventloop for win32 setups
if sys.platform == "win32":
import asyncio
asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())