在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):reactor/reactor-kotlin-extensions开源软件地址(OpenSource Url):https://github.com/reactor/reactor-kotlin-extensions开源编程语言(OpenSource Language):Kotlin 98.9%开源软件介绍(OpenSource Introduction):Reactor Kotlin ExtensionsAdd various extensions and adapters for Kotlin programming language. While Reactor Core, Reactor Addons and other Reactor libraries
are designed to be Kotlin friendly with the use of Maven ArtifactsWith Gradle from repo.spring.io or Maven Central repositories (stable releases only): repositories {
//maven { url 'https://repo.spring.io/snapshot' }
maven { url 'https://repo.spring.io/milestone' }
mavenCentral()
}
dependencies {
//implementation "io.projectreactor.kotlin:reactor-kotlin-extensions:1.2.0-SNAPSHOT"
implementation "io.projectreactor.kotlin:reactor-kotlin-extensions:1.2.0-M3"
} With Maven from Maven Central repositories (stable releases): <dependency>
<groupId>io.projectreactor.kotlin</groupId>
<artifactId>reactor-kotlin-extensions</artifactId>
<version>1.1.6</version>
</dependency> Or from repo.spring.io with access to SNAPSHOT: ...
<dependencies>
<dependency>
<groupId>io.projectreactor.kotlin</groupId>
<artifactId>reactor-kotlin-extensions</artifactId>
<version>1.2.0-M3</version>
</dependency>
</dependencies>
...
<repositories>
<repository>
<id>spring-milestones</id>
<name>Spring Milestones</name>
<url>https://repo.spring.io/milestone</url>
</repository>
<repository>
<id>spring-snapshots</id>
<name>Spring Snapshots</name>
<url>https://repo.spring.io/snapshot</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
Quick ExamplesTuple destructure: val (t1, t2, t3) = Tuples.of(O1, O2, O3)
assertEquals(t1, O1)
assertEquals(t2, O2)
assertEquals(t3, O3) Convert, sum (requires reactor-extra) and test (requires reactor-test): intArrayOf(2_000_000_000, 200_000_000) //sum overflows an Int
.toFlux()
.sum()
.test()
.expectNext(2_200_000_000)
.verifyComplete() Coordinating when two mono completes: whenComplete("foo1".toMono(), "foo2".toMono())
.test()
.verifyComplete() LicenseReactor is Apache 2.0 licensed. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论