4 ms·
It doesn’t block, that’s the whole point. The runtime knows if a given method is blocking or not and under the hood even blocking IO calls are implemented with
by kaba0 5y ago
It doesn’t block, that’s the whole point. The runtime knows if a given method is blocking or not and under the hood even blocking IO calls are implemented with non-blocking IOs. So those can be preempted.
- vips7L 5y agoYes I know. “Just block” refers to just waiting on virtual threads/futures via get or join. No fancy observables or callbacks etc.