toggle menu
Simple Robot
4.8.0
jvm
switch theme
search in API
simbot-api
/
love.forte.simbot.event
/
JAsyncEventInterceptor
/
Context
Context
jvm
data
class
Context
(
val
source
:
EventInterceptor.Context
,
val
scope
:
CoroutineScope
)
(
source
)
供于
JAsyncEventInterceptor
中异步拦截API的阻塞 Context 代理类型。 如果
scope
为
null
,则异步调度的作用域会使用
source
。
Members
Constructors
Context
Link copied to clipboard
jvm
constructor
(
source
:
EventInterceptor.Context
,
scope
:
CoroutineScope
)
Properties
scope
Link copied to clipboard
jvm
val
scope
:
CoroutineScope
source
Link copied to clipboard
jvm
val
source
:
EventInterceptor.Context
Functions
invoke
Link copied to clipboard
jvm
fun
invoke
(
)
:
CompletableFuture
<
EventResult
>
fun
invoke
(
eventListenerContext
:
EventListenerContext
)
:
CompletableFuture
<
EventResult
>