A Kotlin backend application showcasing reactive programming with kotlinx.coroutines.
This project demonstrates the use of Kotlin coroutines for asynchronous and reactive programming, including:
- Basic Coroutines: Simple coroutine launch and delay operations
- Concurrent Execution: Using async/await for parallel task execution
- Structured Concurrency: Managing multiple coroutines with proper lifecycle
- Java 17 or higher
- Gradle 9.2.0 or higher
- Kotlin 2.2.20
The project uses the following kotlinx.coroutines dependencies:
kotlinx-coroutines-core:1.9.0- Core coroutines functionalitykotlinx-coroutines-jdk8:1.9.0- JDK8 integration for coroutineskotlinx-coroutines-test:1.9.0- Testing utilities for coroutines
gradle buildgradle runThis will execute the main application which demonstrates various coroutine examples.
gradle testsrc/
├── main/
│ └── kotlin/
│ └── com/
│ └── rdiego26/
│ └── Main.kt # Main application with coroutine examples
└── test/
└── kotlin/
└── com/
└── rdiego26/
└── CoroutinesTest.kt # Unit tests for coroutines
Demonstrates simple coroutine launching with delays.
Shows how to use async and await for concurrent task execution.
Illustrates managing multiple coroutines with structured concurrency patterns.
This project is licensed under the terms specified in the LICENSE file.