3 ms·
Your original comment implies that "async"-marked functions are the only functions that have concurrency ("If you don't have async markings, you can't know wher
by atombender 7y ago
Your original comment implies that "async"-marked functions are the only functions that have concurrency ("If you don't have async markings, you can't know where in your code you have concurrency"), which isn't true. You can have threading in any function. So marking a function async makes no difference.
- zzzcpan 7y agoNo, think of it as a convention or a framework. While it's ok to wait for asynchronous code to finish in your synchronous code, it's not ok to do threading from within your asynchronous primitives, so you wouldn't need threading synchronization primitives.