kotlin-async-comparison

所属分类:编程语言基础
开发工具:kotlin
文件大小:0KB
下载次数:0
上传日期:2020-05-06 15:56:09
上 传 者sh-1993
说明:  kotlin中协同程序与回调异步编程技术的比较,
(Comparison of coroutines vs callback async programming techniques in kotlin,)

文件列表:
LICENSE (1071, 2020-05-06)
build.gradle (989, 2020-05-06)
diagram.puml (212, 2020-05-06)
gradle.properties (26, 2020-05-06)
gradle/ (0, 2020-05-06)
gradle/wrapper/ (0, 2020-05-06)
gradle/wrapper/gradle-wrapper.jar (58694, 2020-05-06)
gradle/wrapper/gradle-wrapper.properties (200, 2020-05-06)
gradlew (5764, 2020-05-06)
gradlew.bat (3056, 2020-05-06)
settings.gradle (40, 2020-05-06)
src/ (0, 2020-05-06)
src/main/ (0, 2020-05-06)
src/main/kotlin/ (0, 2020-05-06)
src/main/kotlin/org/ (0, 2020-05-06)
src/main/kotlin/org/kotlinlang/ (0, 2020-05-06)
src/main/kotlin/org/kotlinlang/example/ (0, 2020-05-06)
src/main/kotlin/org/kotlinlang/example/Application.kt (1095, 2020-05-06)
src/main/kotlin/org/kotlinlang/example/CompletableFutureClient.kt (1336, 2020-05-06)
src/main/kotlin/org/kotlinlang/example/CoroutinesClient.kt (990, 2020-05-06)
src/main/kotlin/org/kotlinlang/example/ParallelComparisonController.kt (2273, 2020-05-06)
src/main/kotlin/org/kotlinlang/example/ReactorClient.kt (1168, 2020-05-06)
src/main/kotlin/org/kotlinlang/example/SequentialComparisonController.kt (1914, 2020-05-06)

# kotlin-async-comparison Comparison of coroutines vs callback async programming techniques in kotlin ## Running Make sure to have at least `jdk13` in order to run the application. Then you can run it with `gradlew`: ``` ./gradlew bootRun ``` Then you can access the code with `http://localhost:8080`. It contains the following endpoints: - Parallel flow - [Using CompletableFuture](http://localhost:8080/parallel/completable-future) - [Using Project Ractor Mono](http://localhost:8080/parallel/reactor) - [Using Coroutines](http://localhost:8080/parallel/coroutines) - Sequential flow - [Using CompletableFuture](http://localhost:8080/sequential/completable-future) - [Using Project Ractor Mono](http://localhost:8080/sequential/reactor) - [Using Coroutines](http://localhost:8080/sequential/coroutines) ## The comparison The main comparison can be seen in the different functions of the following classes. The idea is that by looking at how the functions are implemented it would be possible to understand the different programming style/techniques. - [ParallelComparisonController](src/main/kotlin/org/kotlinlang/example/ParallelComparisonController.kt) - [SequentialComparisonController](src/main/kotlin/org/kotlinlang/example/SequentialComparisonController.kt)

近期下载者

相关文件


收藏者