How to use the @most/disposable.disposeNone function in @most/disposable

To help you get started, we’ve selected a few @most/disposable examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github mostjs / core / packages / core / src / combinator / multicast.ts View on Github external
constructor(source: Stream<a>) {
    this.source = source
    this.sinks = []
    this.disposable = disposeNone()
  }
</a>
github mostjs / core / packages / core / src / combinator / multicast.ts View on Github external
dispose(): void {
    const disposable = this.disposable
    this.disposable = disposeNone()
    return disposable.dispose()
  }
github motorcyclejs / motorcyclejs / stream / src / combinators / multicast / MulticastSource.ts View on Github external
constructor(source: Stream<a>) {
    this.source = source
    this.sinks = []
    this._disposable = disposeNone()
  }
</a>
github motorcyclejs / motorcyclejs / stream / src / combinators / multicast / MulticastSource.ts View on Github external
protected _dispose() {
    const disposable = this._disposable
    this._disposable = disposeNone()

    disposable.dispose()
  }
github mostjs / core / packages / core / src / combinator / mergeConcurrently.ts View on Github external
constructor(time: Time, outer: Outer, sink: Sink<b>) {
    this.time = time
    this.outer = outer
    this.sink = sink
    this.disposable = disposeNone()
  }
</b>

@most/disposable

Reactive programming with lean, functions-only, curried, tree-shakeable API

MIT
Latest version published 4 years ago

Package Health Score

54 / 100
Full package analysis