Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DisposableDelegate

A disposable object which delegates to a callback function.

Hierarchy

  • DisposableDelegate

Implements

Index

Constructors

Properties

Accessors

Methods

Constructors

constructor

  • Construct a new disposable delegate.

    Parameters

    • fn: function

      The callback function to invoke on dispose.

        • (): void
        • Returns void

    Returns DisposableDelegate

Properties

Private _fn

_fn: function | null

Accessors

isDisposed

  • get isDisposed(): boolean
  • Test whether the delegate has been disposed.

    Returns boolean

Methods

dispose

  • dispose(): void

Generated using TypeDoc