import * as streamObservables from "https://deno.land/x/stream_observables@v1.3/mod.ts";
Functions
f amb | Takes in multiple observables but only emits items from the first observable to emit. |
Collects items from the original observable into buffers until the notifier emits. If no items have been buffered since the last time the notifier emitted, nothing will be emitted. Closing the emitter will emit the remaining buffer. | |
Collects items from the original observable into buffers of size | |
Collects all values from the observable into an array. | |
Combines items from multiple observables. The resulting observable emits array tuples whenever any of the given observables emit, as long as every observable has emitted at least once. The tuples contain the last emitted item from each observable. | |
Combines items from the original observable with the other observables. See combineLatest. | |
Creates an output Observable which sequentially emits all values from given Observable and then moves on to the next. | |
Converts a higher-order Observable into a first-order Observable by concatenating the inner Observables in order. | |
Returns a | |
Sink for observables that discards all values. Useful to leave at the end of a chain. | |
Returns a | |
Returns a | |
Converts a higher-order Observable into a first-order Observable by dropping inner Observables while the previous inner Observable has not yet completed. | |
Utility function to create new observables from external sources.
Returns an object with two values: the new observable, and a | |
Resolves with the first element emitted by the observable, then releases the observable. If no items are emitted the promise is rejected. | |
Resolves with the last element emitted by the observable. If no items are emitted the promise is rejected. | |
Returns a | |
Returns a | |
Calls a function for each item emitted by an observable without waiting for the function to return to forward the item. Exceptions thrown by the function will be caught and ignored. | |
When all observables complete, emit the last emitted value from each. | |
Creates an observable from an asynchronous function. The observable emits exactly one value when once the function returns. | |
Create a | |
Creates an observable from an | |
Creates an observable from a generator that takes no arguments. | |
Create a | |
Creates an observable from a function that gets passed the
observable's | |
Creates an observable from a promise, that emits exactly one value when the promise resolves. | |
Creates an observable that will forever emit | |
f just | Creates an observable that emits a set of values. |
f last | Returns a |
f map | Returns a |
Merges multiple observables by emitting all items from all the observables. Items are emitted in the order they appear. | |
Merges another observable by emitting all items from both the original
observable and the | |
f of | An alias for just. |
f race | Alias for amb. |
Creates an observable that emits numbers from | |
Accumulates value, starting with | |
Creates an observable that forever emits the same value. | |
Emits the most recently emitted value from the Observable whenever the notifier emits. If no new value has been emitted from the source observable since the last time the notifier emitted, nothing will be emitted. | |
f scan | Reduces the original observable with |
Resolves with the only element emitted by the observable. If zero or more than one items are emitted, the promise is rejected. | |
Returns a | |
Alias for discard. | |
Converts a higher-order Observable into a first-order Observable producing values only from the most recent observable sequence. | |
Converts each emitted item to an observable, producing values only from the most recent observable in the sequence. | |
f take | Returns a |
Returns a | |
f tap | Alias for forEach. |
Branches out the source observable as nested observables whenever notifier emits. | |
f zip | Zips items from multiple observables. The resulting observable emits items as array tuples. |
Zips items from the original observable with the |
Type Aliases
An
Observable in the sense of ReactiveX.
The signature, however, does not match the one precedented in ReactiveX
and other languages. In its current incarnation, Observables are synonymous
with WHATWG | |