SimpleListenerHost
abstract class SimpleListenerHost constructor(coroutineContext: CoroutineContext) : ListenerHost, CoroutineScope
Content copied to clipboard
携带一个异常处理器的 ListenerHost.
See also
Constructors
SimpleListenerHost
Link copied to clipboard
fun SimpleListenerHost(coroutineContext: CoroutineContext = EmptyCoroutineContext)
Content copied to clipboard
Functions
handleException
Link copied to clipboard
open fun handleException(context: CoroutineContext, exception: Throwable)
Content copied to clipboard
处理事件处理中未捕获的异常. 在构造器中的 coroutineContext 未提供 CoroutineExceptionHandler 情况下必须继承此函数.
Properties
coroutineContext
Link copied to clipboard