freqtrade_origin/freqtrade/system/asyncio_config.py

11 lines
236 B
Python
Raw Normal View History

2024-08-08 18:20:14 +00:00
import sys
2024-08-09 04:16:44 +00:00
def asyncio_setup() -> None: # pragma: no cover
2024-08-08 18:20:14 +00:00
# Set eventloop for win32 setups
if sys.platform == "win32":
import asyncio
2024-08-09 04:16:44 +00:00
asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())