Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
Him188 committed Aug 21, 2020
1 parent 6cd6520 commit 979c890
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion README-chs.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,9 @@ suspend fun test(a1: Int, a2: Any): String
This plugin generates the non-suspend bridge function with the same signature (visible only from Java)
```kotlin
@GeneratedBlockingBridge
fun test(a1: Int, a2: Any): String = runBlocking { test(a1, a2) }
fun test(a1: Int, a2: Any): String = runBlocking {
test(a1, a2) // 调用原 suspend `test`
} // runBlocking 仅作为演示. KJBB 会更聪明地编译你的代码, 并且不依赖 kotlinx-coroutines-core.
```

### IDE (IntelliJ) 插件
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,9 @@ suspend fun test(a1: Int, a2: Any): String
This plugin generates the non-suspend bridge function with the same signature (visible only from Java)
```kotlin
@GeneratedBlockingBridge
fun test(a1: Int, a2: Any): String = runBlocking { test(a1, a2) }
fun test(a1: Int, a2: Any): String = runBlocking {
test(a1, a2) // calls the original suspend `test`
} // runBlocking is for demonstration. KJBB compiles your code in a smart way and doesn't require kotlinx-coroutines-core.
```

### IDE plugin
Expand Down

0 comments on commit 979c890

Please sign in to comment.