Skip to content

Commit 073470e

Browse files
committed
Update README
1 parent e134234 commit 073470e

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

README.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -561,16 +561,16 @@ public fun <T> runInAsync(block: suspend () -> T, scope: CoroutineScope? = null)
561561
return scope0.future { block() }
562562

563563
/*
564-
the `scope` is the `block`'s container:
565-
```
566-
interface Container {
567-
@JvmAsync
568-
suspend fun run()
569-
👇 compiled
570-
571-
fun runAsync() = runInAsync(block = { run() }, scope = this as? CoroutineScope)
572-
}
573-
```
564+
* the `scope` is the `block`'s container:
565+
* ```
566+
* interface Container {
567+
* @JvmAsync
568+
* suspend fun run()
569+
* 👇 compiled
570+
*
571+
* fun runAsync() = runInAsync(block = { run() }, scope = this as? CoroutineScope)
572+
* }
573+
* ```
574574
*/
575575
}
576576

@@ -598,9 +598,9 @@ public annotation class SuspendTrans(
598598
val asyncSuffix: String = "Async",
599599
val asyncAsProperty: Boolean = false,
600600

601-
val reserveBaseName: String = "",
602-
val reserveSuffix: String = "Reserve",
603-
val reserveAsProperty: Boolean = false,
601+
val jsPromiseBaseName: String = "",
602+
val jsPromiseSuffix: String = "Async",
603+
val jsPromiseAsProperty: Boolean = false,
604604
)
605605
```
606606

README_CN.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -600,9 +600,9 @@ public annotation class SuspendTrans(
600600
val asyncSuffix: String = "Async",
601601
val asyncAsProperty: Boolean = false,
602602

603-
val reserveBaseName: String = "",
604-
val reserveSuffix: String = "Reserve",
605-
val reserveAsProperty: Boolean = false,
603+
val jsPromiseBaseName: String = "",
604+
val jsPromiseSuffix: String = "Async",
605+
val jsPromiseAsProperty: Boolean = false,
606606
)
607607
```
608608

0 commit comments

Comments
 (0)