Simple
一个对 EventResult 内容进行简单实现的 StandardEventResult 数据类型。 实现 CollectableReactivelyResult, 在监听函数处理完成后会被尝试挂起收集 content 的结果。 详情参考 CollectableReactivelyResult.content。
建议通过工厂函数 EventResult.of 来间接获取 Simple 并在可能的情况下使用其他选项来减少对象实例的构建。
Properties
当 content 的返回值为 reactive api 相关或异步结果相关的内容,且当前 EventResult 实例为 CollectableReactivelyResult 类型的时候, 处理器应当对这类相关的api进行收集。这通常使用在Java使用者或者与其他reactive API配合使用的时候。
EventResult.content 是否为空。
是否阻止下一个事件处理逻辑的执行。
Functions
收集 StandardEventResult.CollectableReactivelyResult.content 的结果并返回。 如果结果不可收集或不支持收集,则得到原值。
收集 StandardEventResult.CollectableReactivelyResult.content 的结果并返回。 如果结果不可收集或不支持收集,则得到原值。
收集 StandardEventResult.CollectableReactivelyResult.content 的结果并返回。 如果结果不可收集或不支持收集,则得到原值。
收集 StandardEventResult.CollectableReactivelyResult.content 的结果并返回。 如果结果不可收集或不支持收集,则得到原值。
Collects the result of a CollectableReactivelyResult by invoking the collectCollectableReactively() method and returning the result as an EventResult.
当响应式结果 content 被收集完毕后通过 collected 提供其收集的结果 collectedContent, 并作为一个新的 EventResult 结果提供.
Collects the event result. This method is suspending and can be used in a coroutine.