atvik
    Preparing search index...

    Interface SubscriptionHandle

    Handle that points to a previously subscribed listener. This handle is returned when a subscription occurs and can be used to remove the subscription.

    The handle is Disposable, so using can unsubscribe the listener at the end of a block:

    {
    using handle = event.subscribe(listener);
    // listener receives events here
    }
    // listener is unsubscribed here
    interface SubscriptionHandle {
        "[dispose]"(): void;
        unsubscribe(): void;
    }

    Hierarchy

    • Disposable
      • SubscriptionHandle
    Index
    • Returns void