nextEventAsync
Content copied to clipboard
返回一个 Deferred, 其值为下一个广播并通过 filter 的事件 E 示例.
Since
2.2
See also
Parameters
timeoutMillis
超时. 单位为毫秒. -1
为不限制.
filter
过滤器. 返回 true
时表示得到了需要的实例. 返回 false
时表示继续监听
coroutineContext
添加给启动的协程的 CoroutineContext
Throws
TimeoutCancellationException
在超时后抛出.