Skip to content

Commit 937fee0

Browse files
authored
Merge pull request thombergs#195 from pratikdas/kotlin-coroutines
Kotlin Coroutines
2 parents 351804a + f531c21 commit 937fee0

17 files changed

Lines changed: 611 additions & 0 deletions

build-all.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ if [[ "$MODULE" == "module7" ]]
8787
then
8888
# ADD NEW MODULES HERE
8989
# (add new modules above the rest so you get quicker feedback if it fails)
90+
build_gradle_module "kotlin/coroutines"
9091
build_maven_module "core-java/streams/data-streams"
9192
build maven_module "aws/kinesis"
9293
build maven_module "aws/sqs"

kotlin/coroutines/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Kotlin Coroutine Code Examples
2+
3+
## Related Blog Articles
4+
5+
* [Understanding Kotlin Coroutines](understanding-kotlin-coroutines)

kotlin/coroutines/build.gradle

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
plugins {
2+
id 'org.jetbrains.kotlin.jvm' version '1.6.21'
3+
}
4+
5+
group = 'io.pratik'
6+
version = '1.0-SNAPSHOT'
7+
8+
repositories {
9+
mavenCentral()
10+
}
11+
12+
dependencies {
13+
implementation 'org.jetbrains.kotlin:kotlin-stdlib'
14+
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.2'
15+
testImplementation 'org.jetbrains.kotlin:kotlin-test'
16+
}
17+
18+
test {
19+
useJUnitPlatform()
20+
}
21+
22+
compileKotlin {
23+
kotlinOptions.jvmTarget = '1.8'
24+
}
25+
26+
compileTestKotlin {
27+
kotlinOptions.jvmTarget = '1.8'
28+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
kotlin.code.style=official
58.1 KB
Binary file not shown.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
distributionBase=GRADLE_USER_HOME
2+
distributionPath=wrapper/dists
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip
4+
zipStoreBase=GRADLE_USER_HOME
5+
zipStorePath=wrapper/dists

kotlin/coroutines/gradlew

Lines changed: 234 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

kotlin/coroutines/gradlew.bat

Lines changed: 89 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

kotlin/coroutines/settings.gradle

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
2+
rootProject.name = 'CoroutineApp'
3+

0 commit comments

Comments
 (0)