Java Equivalent of C# async/await?

No, there isn’t any equivalent of async/await in Java – or even in C# before v5.

It’s a fairly complex language feature to build a state machine behind the scenes.

There’s relatively little language support for asynchrony/concurrency in Java, but the java.util.concurrent package contains a lot of useful classes around this. (Not quite equivalent to the Task Parallel Library, but the closest approximation to it.)

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)