Skip to content

Commit 4bfbac7

Browse files
cburgdorfpipermerriam
authored andcommitted
Add warning regarding fork and asyncio (#1519)
1 parent b272c8f commit 4bfbac7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

trinity/utils/mp.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
from types import TracebackType
1414

1515

16+
# WARNING: Think twice before experimenting with `fork`. The `fork` method does not work well with
17+
# asyncio yet. This might change with Python 3.8 (See https://bugs.python.org/issue22087#msg318140)
1618
MP_CONTEXT = os.environ.get('TRINITY_MP_CONTEXT', 'spawn')
1719

1820

0 commit comments

Comments
 (0)