MCPcopy Create free account
hub / github.com/TheSmallHanCat/flow2api / _configure_asyncio_policy

Function _configure_asyncio_policy

src/main.py:55–65  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

53
54
55def _configure_asyncio_policy() -> None:
56 if os.name != "nt":
57 return
58 policy_cls = getattr(asyncio, "WindowsProactorEventLoopPolicy", None)
59 if policy_cls is None:
60 return
61 try:
62 if not isinstance(asyncio.get_event_loop_policy(), policy_cls):
63 asyncio.set_event_loop_policy(policy_cls())
64 except Exception:
65 pass
66
67
68def _suppress_known_runtime_warnings() -> None:

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected