/CoroutineRecipes

Playground for Kotlin Coroutines. Basics, Channels, Flows, useful examples & comparison to RxJava.

Primary LanguageKotlinApache License 2.0Apache-2.0

Coroutine Recipes

Playground for Kotlin Coroutines.
Ready to use IntelliJ IDEA project with basic explanations.

* Basic async/launch comparisons
* Job/Deferred completion invocations & cancellations
* Context tests
* Basic & Supervisor scopes. Cancellation & exception handling.
* Concurrent & serial tasks. Comparison with RxJava.
* Critical section handling
* Resource access from different threads
* Channels, BroadcastChannels, ConflatedBroadcastChannels
* Channel buffers
* Differences between Channels and Flows
* Basic Flow operators
* State & Shared Flows
* Callback & Channel Flows

Project is under continuous development