simple-robot
3.0.0-RC.2
simbot-api
/
love.forte.simbot.utils
/
runInAsync
run
In
Async
@
InternalSimbotApi
fun
<
T
>
runInAsync
(
scope
:
CoroutineScope
,
context
:
CoroutineContext
=
EmptyCoroutineContext
,
block
:
suspend
CoroutineScope
.
(
)
->
T
)
:
CompletableFuture
<
T
>
@
InternalSimbotApi
fun
<
T
>
runInAsync
(
block
:
suspend
CoroutineScope
.
(
)
->
T
)
:
CompletableFuture
<
T
>
执行一个异步函数,得到
CompletableFuture
.