observable
observable copied to clipboard
Observable API proposal
It would be nice if addition to the existing overloads we had an overload for `.takeUntil` that accepted an `AbortSignal`. An example of usage: ```js import chokidar from "chokidar"; const...
So on `Subscriber` we have `.addTeardown` which adds a convenient way to ensure teardown happens even if the subscriber is already closed. It's not clear to me why though this...
Lots of libraries and runtimes use `on()` as a generic event handling mechanism. This name might cause problems for them updating and as such cause unnecessary friction. It would be...
The issue https://github.com/WICG/observable/issues/52 was originally filed to track the adding of the `switchMap()` operator. We ultimately decided that it was worth adding this operator both in that issue, and in...
I've seen Observables only proposed as event sources, but why not support them as data sinks, as well? ``` element .observe('keypress') .map(e => e.keyCode) .sink(otherElement.innerHTML) .sink(yetAnotherElement.appendChild) ``` Using a hypothetical...
Just as an initial note to this issue: resolution of this issue is not required for the shipping of either `first()` or `last()` APIs. It came to my attention through...
Add the step to check subscriber's active state to next(value)/error(error)/complete() as a shortcut
Fix https://github.com/WICG/observable/issues/114 *** Preview | Diff
No action required, I just want to note that this proposal meets the two requests that were made in TC39 that I was aware of: - @domenic asked that observables...
Does the proposal have any plans for extending existing operators? In our internal implementation, we modify operators using imports of modules that modify the prototype. We think it'd be better...