Skip to content

Commit ebe36f7

Browse files
chore: better document why the loop policy is required
1 parent 7ba1c00 commit ebe36f7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

modmail/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@
99
from modmail.log import ModmailLogger
1010

1111

12-
# On Windows, the selector event loop is required for aiodns.
12+
# on windows aiodns's asyncio support relies on APIs like add_reader (which aiodns uses)
13+
# are not guaranteed to be available, and in particular are not available when using the
14+
# ProactorEventLoop on Windows, this method is only supported with Windows SelectorEventLoop
1315
if os.name == "nt":
1416
asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())
1517

0 commit comments

Comments
 (0)