appendResultIntoContext

abstract suspend fun appendResultIntoContext(context: C, result: EventResult): ListenerInvokeType

向提供的上下文 CEventProcessingContext.resultsView 中追加一个 EventResult.

SimpleEventListenerManager 会对所有得到的结果进行尝试推送,包括 EventResult.Invalid, 但是建议不会真正的添加 EventResult.Invalid.

Reactive API

在核心模块的默认实现下,appendResultIntoContext 中支持对 reactive API 的相关支持。

详情请参考 kotlinx-coroutine-reactive

See also