3 ms·
Could you please contrast async/await implementation with Future in Java? From the usability standpoint I see that they are more or less similar. However since
by vishnugupta 12y ago
Could you please contrast async/await implementation with Future in Java?
From the usability standpoint I see that they are more or less similar. However since you state that async/await exploits the asynchronous capabilities of the underlying platform I'm really curious to know how is this different from the way the way Future is implemented in a JVM.
- pjmlp 12y agoFutures in .NET are tasks and the Fork/Join framework is TPL (Task Parallel Library). Async/await allows developers to write code that looks sequential, but is rewritten by the compiler into a sequence of coroutines built on top of TPL, while taking care error propagation happens correctly.