Skip to content

Commit da582da

Browse files
committed
Add documentation for Coroutines dependencies
1 parent 772087f commit da582da

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/docs/asciidoc/languages/kotlin.adoc

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,21 @@ Spring Framework provides support for Coroutines on the following scope:
402402
* Suspending function and `Flow` support in RSocket `@MessageMapping` annotated methods
403403
* Extensions for {doc-root}/spring-framework/docs/{spring-version}/kdoc-api/spring-framework/org.springframework.messaging.rsocket/index.html[`RSocketRequester`]
404404

405+
=== Dependencies
406+
407+
Coroutines support is enabled when `kotlinx-coroutines-core` and `kotlinx-coroutines-reactor`
408+
dependencies are in the classpath:
409+
410+
`build.gradle.kts`
411+
[source,kotlin,indent=0]
412+
----
413+
dependencies {
414+
415+
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:${coroutinesVersion}")
416+
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-reactor:${coroutinesVersion}")
417+
}
418+
----
419+
405420
=== How Reactive translates to Coroutines?
406421

407422
For return values, the translation from Reactive to Coroutines APIs is the following:

0 commit comments

Comments
 (0)