3 ms·
The event loop stops being deterministic if you start triggering events based on a clock. Or if you have calls blocking on external resources with unpredictable
by TeMPOraL 8y ago
The event loop stops being deterministic if you start triggering events based on a clock. Or if you have calls blocking on external resources with unpredictable timing.
Say, you have a code like this:
asynchronously doA();
blockReadingFile();
doB();
Whether doA() is finished or not when doB() executes depends on internals of doA() and on how long blockReadingFile() takes.