Java Equivalent of C# async/await?

The Solution to Java Equivalent of C# async/await? is

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.)

~ Answered on 2013-05-14 09:17:32

Most Viewed Questions: