Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | - | - | ||||
api/ | H | 25-Apr-2025 | - | 75 | 65 | |
src/ | H | 25-Apr-2025 | - | 1,114 | 678 | |
test/ | H | 25-Apr-2025 | - | 1,875 | 1,552 | |
README.md | H A D | 25-Apr-2025 | 3.7 KiB | 59 | 41 | |
build.gradle.kts | H A D | 25-Apr-2025 | 1.4 KiB | 52 | 41 | |
package.list | H A D | 25-Apr-2025 | 20 | 2 | 1 |
README.md
1# Module kotlinx-coroutines-reactive 2 3Utilities for [Reactive Streams](https://www.reactive-streams.org). 4 5Coroutine builders: 6 7| **Name** | **Result** | **Scope** | **Description** 8| --------------- | ----------------------------- | ---------------- | --------------- 9| [kotlinx.coroutines.reactive.publish] | `Publisher` | [ProducerScope] | Cold reactive publisher that starts the coroutine on subscribe 10 11Integration with [Flow]: 12 13| **Name** | **Result** | **Description** 14| --------------- | -------------- | --------------- 15| [Publisher.asFlow] | `Flow` | Converts the given publisher to a flow 16| [Flow.asPublisher] | `Publisher` | Converts the given flow to a TCK-compliant publisher 17 18If these adapters are used along with `kotlinx-coroutines-reactor` in the classpath, then Reactor's `Context` is properly 19propagated as coroutine context element (`ReactorContext`) and vice versa. 20 21Suspending extension functions and suspending iteration: 22 23| **Name** | **Description** 24| -------- | --------------- 25| [Publisher.awaitFirst][org.reactivestreams.Publisher.awaitFirst] | Returns the first value from the given publisher 26| [Publisher.awaitFirstOrDefault][org.reactivestreams.Publisher.awaitFirstOrDefault] | Returns the first value from the given publisher or default 27| [Publisher.awaitFirstOrElse][org.reactivestreams.Publisher.awaitFirstOrElse] | Returns the first value from the given publisher or default from a function 28| [Publisher.awaitFirstOrNull][org.reactivestreams.Publisher.awaitFirstOrNull] | Returns the first value from the given publisher or null 29| [Publisher.awaitLast][org.reactivestreams.Publisher.awaitFirst] | Returns the last value from the given publisher 30| [Publisher.awaitSingle][org.reactivestreams.Publisher.awaitSingle] | Returns the single value from the given publisher 31 32<!--- MODULE kotlinx-coroutines-core --> 33<!--- INDEX kotlinx.coroutines --> 34<!--- INDEX kotlinx.coroutines.flow --> 35 36[Flow]: https://kotlinlang.org/api/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.flow/-flow/index.html 37 38<!--- INDEX kotlinx.coroutines.channels --> 39 40[ProducerScope]: https://kotlinlang.org/api/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.channels/-producer-scope/index.html 41 42<!--- MODULE kotlinx-coroutines-reactive --> 43<!--- INDEX kotlinx.coroutines.reactive --> 44 45[kotlinx.coroutines.reactive.publish]: https://kotlinlang.org/api/kotlinx.coroutines/kotlinx-coroutines-reactive/kotlinx.coroutines.reactive/publish.html 46[Publisher.asFlow]: https://kotlinlang.org/api/kotlinx.coroutines/kotlinx-coroutines-reactive/kotlinx.coroutines.reactive/as-flow.html 47[Flow.asPublisher]: https://kotlinlang.org/api/kotlinx.coroutines/kotlinx-coroutines-reactive/kotlinx.coroutines.reactive/as-publisher.html 48[org.reactivestreams.Publisher.awaitFirst]: https://kotlinlang.org/api/kotlinx.coroutines/kotlinx-coroutines-reactive/kotlinx.coroutines.reactive/await-first.html 49[org.reactivestreams.Publisher.awaitFirstOrDefault]: https://kotlinlang.org/api/kotlinx.coroutines/kotlinx-coroutines-reactive/kotlinx.coroutines.reactive/await-first-or-default.html 50[org.reactivestreams.Publisher.awaitFirstOrElse]: https://kotlinlang.org/api/kotlinx.coroutines/kotlinx-coroutines-reactive/kotlinx.coroutines.reactive/await-first-or-else.html 51[org.reactivestreams.Publisher.awaitFirstOrNull]: https://kotlinlang.org/api/kotlinx.coroutines/kotlinx-coroutines-reactive/kotlinx.coroutines.reactive/await-first-or-null.html 52[org.reactivestreams.Publisher.awaitSingle]: https://kotlinlang.org/api/kotlinx.coroutines/kotlinx-coroutines-reactive/kotlinx.coroutines.reactive/await-single.html 53 54<!--- END --> 55 56# Package kotlinx.coroutines.reactive 57 58Utilities for [Reactive Streams](https://www.reactive-streams.org). 59