接口 EventSink<T>实验性

An event that can be subscribed to. You can use the token, returned from the subscribe method, to clean up handlers.

interface EventSink<T> {
    subscribe(handler: EventHandler<T>): IEventToken;
}

类型参数

  • T

方法

方法

  • 实验性

    参数

    返回 IEventToken

    An event handler subscription token that can be used to unsubscribe and clean-up handlers.

    Subscribes an event handler to a particular subscription.