coroutineContext

用于 EventContinuousSessionContext 中的协程上下文。

值来自 ApplicationConfiguration.coroutineContext,但不包含 Job。 如果配置后 coroutineContext 存在 Job, 则会基于此以及 ApplicationConfiguration.coroutineContext 合成一个新的 Job

在 Java 中时,如果你打算在逻辑中使用 阻塞 API,那么建议为其配置虚拟线程调度器; 否则,建议在其中使用异步 API,例如 InSessions.async