Skip to content

Commit 28bfb9c

Browse files
committed
Changed Kotlinx coroutines core library dependency scope
From 'api' to 'implementation'
1 parent 7f49f3c commit 28bfb9c

File tree

3 files changed

+4
-8
lines changed

3 files changed

+4
-8
lines changed

README.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,10 @@ For Maven and Ivy snippets, see the [distribution page](https://bintray.com/agco
3434

3535
```kotlin
3636
import io.github.agcom.knio2.*
37-
import kotlinx.coroutines.runBlocking
3837
import java.nio.ByteBuffer
3938
import java.nio.channels.AsynchronousSocketChannel
4039

41-
fun main() = runBlocking<Unit> {
40+
suspend fun main() {
4241
val socket: AsynchronousSocketChannel = TODO().apply {
4342
connectAwait(TODO()) // connectAwait
4443
}

examples/src/main/kotlin/io/github/agcom/knio2/examples/PseudoUsage.kt

+2-5
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,11 @@
22

33
package io.github.agcom.knio2.examples
44

5-
import io.github.agcom.knio2.connectAwait
6-
import io.github.agcom.knio2.readAwait
7-
import io.github.agcom.knio2.writeAwait
8-
import kotlinx.coroutines.runBlocking
5+
import io.github.agcom.knio2.*
96
import java.nio.ByteBuffer
107
import java.nio.channels.AsynchronousSocketChannel
118

12-
fun main() = runBlocking<Unit> {
9+
suspend fun main() {
1310
val socket: AsynchronousSocketChannel = TODO().apply {
1411
connectAwait(TODO()) // connectAwait
1512
}

lib/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ plugins {
55
}
66

77
dependencies {
8-
api "org.jetbrains.kotlinx:kotlinx-coroutines-core:$kotlinxCoroutinesVersion"
8+
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:$kotlinxCoroutinesVersion"
99
}
1010

1111
kotlin {

0 commit comments

Comments
 (0)