Vinyl
    Preparing search index...

    Function createDisposer

    • Creates a Disposer, an object on which Disposable instances may be added, and disposed as a group.

      The method members may be called without a receiver, thus allowing destructuring. Example:

      function create(): Disposable {
      const { dispose, add } = disposer()
      add(someDisposable)
      add(anotherDisposable)
      return {
      dispose
      }
      }

      Returns Disposer