You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/asyncio.md
+87Lines changed: 87 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1407,6 +1407,93 @@ The async task API is fully thread-safe:
1407
1407
1408
1408
This means you can safely call `py_event_loop:create_task` from within a callback that's already running on a dirty NIF scheduler.
1409
1409
1410
+
## Event Loop Pool
1411
+
1412
+
The `py_event_loop_pool` module provides a pool of event loops for parallel Python coroutine execution. Inspired by libuv's "one loop per thread" model, each loop has its own worker and maintains event ordering.
1413
+
1414
+
### Process Affinity
1415
+
1416
+
All tasks from the same Erlang process are routed to the same event loop (via PID hash). This guarantees that timers and related async operations from a single process execute in order.
0 commit comments