3 ms·
I think the OP refers to the syntax/API for each. If you're already using async APIs, adding a sync one that runs in a separate thread won't change much. On th
by lucian1900 15y ago
I think the OP refers to the syntax/API for each. If you're already using async APIs, adding a sync one that runs in a separate thread won't change much.
On the other hand, you need something like CPS or coroutines to cleanly use an async function in a program mostly using sync APIs.
Of course, if you have the right tools (CPS/coroutines) you can make any async API look sync, as you said.
- gozala 15y agoI mainly was referring to JS where we don't have coroutines and there is no plans to have them either.