|
|
|
|
|
by d0paware
1966 days ago
|
|
What's the recommended way to drop into blocking code? For example, if you already have a worker thread pool executing some blocking code. I am guessing it will automatically look for static occurrences of park(), wait(), etc anything that goes into a blocked state and yields to the next handler on the event queue? Even with the coroutine support, it doesn't seem smart enough to make something like "while (true) { ... }" auto-yield to other functions or handlers on the event queue. To be fair, it's not like javascript does this for you either. |
|