3 ms·
Async-await is just syntactic sugar over futures/promises and java has those for decades.
by geezerjay 8y ago
Async-await is just syntactic sugar over futures/promises and java has those for decades.
- kazagistar 8y agoIt only got the promise equivalent (CompletableFuture and CompletionStage) in java8, which is hardly "decades" ago, and a lot of common stuff like JDBC doesn't support it, so using it can be quite a pain. And that's not to mention the disaster that is checked exception interoperability with the default Java functional interfaces that force constant workarounds...