3 ms·
My understanding is that async/await gives the promise to write asynchronous code like synchronous code. Except the use of 'await' it's true.
by amirouche 9y ago
My understanding is that async/await gives the promise to write asynchronous code like synchronous code. Except the use of 'await' it's true.
- MaxBarraclough 9y agoAll told I'd say it's an successful but imperfect abstraction. I've been very impressed by it all in all. Concurrent programming isn't easy, and it's not a silver bullet, but it's a great language feature. In an ideal world you'd just take existing synchronous code and throw async/await keywords at it to make it async. The abstraction isn't quite that successful, of course. See Stephen Cleary's AsyncEx library, which provides async-specific functionality such as AsyncLock, which doesn't exist in the standard library. https://github.com/StephenCleary/AsyncEx/wiki/AsyncLock https://github.com/StephenCleary/AsyncEx/wiki/AsyncLock