Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It does no function coloring. Just block :). Virtual threads are preemptive not cooperative.


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.


Yes I know. “Just block” refers to just waiting on virtual threads/futures via get or join. No fancy observables or callbacks etc.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: