diff --git a/pages/asynchronous-work/event-loop-timers-and-nexttick.md b/pages/asynchronous-work/event-loop-timers-and-nexttick.md index df13a1e..0fc91ee 100644 --- a/pages/asynchronous-work/event-loop-timers-and-nexttick.md +++ b/pages/asynchronous-work/event-loop-timers-and-nexttick.md @@ -22,29 +22,36 @@ this document) which may make async API calls, schedule timers, or call The following diagram shows a simplified overview of the event loop's order of operations. + + ``` ┌───────────────────────────┐ - │ timers │ + │ timers │ └─────────────┬─────────────┘ - │ - v + │ + v ┌───────────────────────────┐ -┌─>│ pending callbacks │ +┌─>│ pending callbacks │ │ └─────────────┬─────────────┘ │ ┌─────────────┴─────────────┐ -│ │ idle, prepare │ -│ └─────────────┬─────────────┘ ┌───────────────┐ +│ │ idle, prepare │ +│ └─────────────┬─────────────┘ ┌────────────────┐ │ ┌─────────────┴─────────────┐ │ incoming: │ -│ │ poll │<─────┤ connections, │ +│ │ poll │<─────┤ connections, │ │ └─────────────┬─────────────┘ │ data, etc. │ -│ ┌─────────────┴─────────────┐ └───────────────┘ -│ │ check │ +│ ┌─────────────┴─────────────┐ └────────────────┘ +│ │ check │ │ └─────────────┬─────────────┘ │ ┌─────────────┴─────────────┐ -│ │ close callbacks │ +│ │ close callbacks │ │ └─────────────┬─────────────┘ │ ┌─────────────┴─────────────┐ -└──┤ timers │ +└──┤ timers │ └───────────────────────────┘ ```