2 ms·
A function that sleeps for 5 seconds is blocking. No IO involved. Blocking just means that you're blocking your current code till you return out of the called
by dagmx 5y ago
A function that sleeps for 5 seconds is blocking. No IO involved.
Blocking just means that you're blocking your current code till you return out of the called function.
Anything else regarding a function call is an assumption unless you know the exact implementation.