News for hackers. Stuff that matters.
Re:Await in Rust by atombender on Monday August 12, 2019 @02:27PM (#20678351)
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.
Re:Await in Rust by zzzcpan on Monday August 12, 2019 @02:39PM (#20678461)
No, 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.