toggle menu
Simple Robot
3.3.0
jvm
switch theme
search in API
simbot-util-suspend-transformer
/
love.forte.simbot.utils
/
runInAsync
run
In
Async
jvm
@
InternalSimbotApi
fun
<
T
>
runInAsync
(
scope
:
CoroutineScope
,
context
:
CoroutineContext
=
EmptyCoroutineContext
,
block
:
suspend
CoroutineScope
.
(
)
->
T
)
:
CompletableFuture
<
T
>
(
source
)
@
InternalSimbotApi
fun
<
T
>
runInAsync
(
block
:
suspend
CoroutineScope
.
(
)
->
T
)
:
CompletableFuture
<
T
>
(
source
)
执行一个异步函数,得到
CompletableFuture
.