Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
ForteScarlet committed Oct 5, 2024
1 parent e134234 commit 073470e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
26 changes: 13 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -561,16 +561,16 @@ public fun <T> runInAsync(block: suspend () -> T, scope: CoroutineScope? = null)
return scope0.future { block() }

/*
the `scope` is the `block`'s container:
```
interface Container {
@JvmAsync
suspend fun run()
👇 compiled
fun runAsync() = runInAsync(block = { run() }, scope = this as? CoroutineScope)
}
```
* the `scope` is the `block`'s container:
* ```
* interface Container {
* @JvmAsync
* suspend fun run()
* 👇 compiled
*
* fun runAsync() = runInAsync(block = { run() }, scope = this as? CoroutineScope)
* }
* ```
*/
}

Expand Down Expand Up @@ -598,9 +598,9 @@ public annotation class SuspendTrans(
val asyncSuffix: String = "Async",
val asyncAsProperty: Boolean = false,

val reserveBaseName: String = "",
val reserveSuffix: String = "Reserve",
val reserveAsProperty: Boolean = false,
val jsPromiseBaseName: String = "",
val jsPromiseSuffix: String = "Async",
val jsPromiseAsProperty: Boolean = false,
)
```

Expand Down
6 changes: 3 additions & 3 deletions README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -600,9 +600,9 @@ public annotation class SuspendTrans(
val asyncSuffix: String = "Async",
val asyncAsProperty: Boolean = false,

val reserveBaseName: String = "",
val reserveSuffix: String = "Reserve",
val reserveAsProperty: Boolean = false,
val jsPromiseBaseName: String = "",
val jsPromiseSuffix: String = "Async",
val jsPromiseAsProperty: Boolean = false,
)
```

Expand Down

0 comments on commit 073470e

Please sign in to comment.