Using Coroutines in Java

Inspired by coroutines in Go and Kotlin, we provide a new Java framework for suspending coroutines. Other than existing Java solutions, it is implemented as a simple dependency without using JNI or the need to perform bytecode manipulation from separate Java Agents. It also applies the pattern of structured concurrency, which has been inspired by the noteworthy essay Notes on structured concurrency, or: Go statement considered harmful by Nathaniel J. Smith. The project is available as Open Source on GitHub under the Apache 2.0 license. Documentation of the usage and features can be found on the project page. An extended introductory article is also available.

Because Java doesn't have language support for coroutines, the declaration of coroutines needs to be done through an API. Fortunately, the functional language features available since Java 8, like...

Read More »

By: FeedsGeneral - Friday, 9 November

Related Posts