### Maven Dependency for Reactor Kotlin Extensions
Source: https://github.com/reactor/reactor-kotlin-extensions/blob/main/README.md
Include the reactor-kotlin-extensions library in your Maven project. This example uses a stable release version.
```xml
io.projectreactor.kotlin
reactor-kotlin-extensions
1.3.1
```
--------------------------------
### Maven Dependency with Snapshots and Milestones
Source: https://github.com/reactor/reactor-kotlin-extensions/blob/main/README.md
Configure Maven to use snapshot and milestone repositories for accessing pre-release versions of reactor-kotlin-extensions.
```xml
io.projectreactor.kotlin
reactor-kotlin-extensions
1.3.2-SNAPSHOT
spring-milestones
Spring Milestones
https://repo.spring.io/milestone
spring-snapshots
Spring Snapshots
https://repo.spring.io/snapshot
true
```
--------------------------------
### Tuple Destructuring in Kotlin
Source: https://github.com/reactor/reactor-kotlin-extensions/blob/main/README.md
Demonstrates how to destructure a Reactor Tuple into individual variables in Kotlin. Ensure Tuples are imported.
```kotlin
val (t1, t2, t3) = Tuples.of(O1, O2, O3)
assertEquals(t1, O1)
assertEquals(t2, O2)
assertEquals(t3, O3)
```
--------------------------------
### Flux Summation and Testing
Source: https://github.com/reactor/reactor-kotlin-extensions/blob/main/README.md
Converts an integer array to a Flux, calculates the sum, and verifies the result using reactor-test. Requires reactor-extra for sum() and reactor-test for test().
```kotlin
intArrayOf(2_000_000_000, 200_000_000) //sum overflows an Int
.toFlux()
.sum()
.test()
.expectNext(2_200_000_000)
.verifyComplete()
```
--------------------------------
### Gradle Dependencies for Reactor Kotlin Extensions
Source: https://github.com/reactor/reactor-kotlin-extensions/blob/main/README.md
Add the reactor-kotlin-extensions library to your Gradle project. Ensure you have mavenCentral() or repo.spring.io configured in your repositories.
```groovy
repositories {
//maven { url 'https://repo.spring.io/snapshot' }
mavenCentral()
}
implementation "io.projectreactor.kotlin:reactor-kotlin-extensions:1.3.1"
```
--------------------------------
### Coordinating Mono Completions
Source: https://github.com/reactor/reactor-kotlin-extensions/blob/main/README.md
Waits for two Mono instances to complete using the whenComplete operator. This is useful for synchronizing asynchronous operations.
```kotlin
whenComplete("foo1".toMono(), "foo2".toMono())
.test()
.verifyComplete()
```
=== COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.