An event loop is a loop that monitors an IO or timer event and calls callbacks that want the event.
Therefore, callbacks registered in the event loop have events that each person is waiting for (File IO, Network IO, Timer event), so callbacks are executed in the order in which the events occur, not in the order in which they are registered.
© 2024 OneMinuteCode. All rights reserved.