toggle menu
Simple Robot
3.3.0
jvm
switch theme
search in API
simbot-util-suspend-transformer
/
love.forte.simbot.utils
/
runInTimeoutBlocking
run
In
Timeout
Blocking
jvm
fun
<
T
>
runInTimeoutBlocking
(
timeout
:
Long
,
context
:
CoroutineContext
=
DefaultBlockingContext
,
block
:
suspend
CoroutineScope
.
(
)
->
T
)
:
T
(
source
)
如果超时,则抛出
TimeoutException
.
See also
run
In
Blocking
with
Timeout