beicon.v2.ops
RxJS operators only
buffer
Projects each element of an observable sequence into zero or more buffers which are produced based on element count information.
buffer-time
Buffers the source Observable values for a specific time period. (operator only)
catch
(catch handler)
Continues an observable sequence that is terminated by an exception with the next observable sequence.
combine-latest
Combines multiple Observables to create an Observable whose values are calculated from the latest values of each of its input Observables (operator).
debounce
Emits an item from the source Observable after a particular timespan has passed without the Observable omitting any other items.
delay
Time shifts the observable sequence by dueTime. The relative time intervals between the values are preserved.
delay-when
Time shifts the observable sequence based on a subscription delay and a delay selector function for each element.
distinct
(distinct)
(distinct comparator-fn)
(distinct comparator-fn key-fn)
Returns an observable sequence that contains only distinct elements.
Usage of this operator should be considered carefully due to the maintenance of an internal lookup structure which can grow large.
distinct-contiguous
(distinct-contiguous)
(distinct-contiguous comparator-fn)
(distinct-contiguous comparator-fn key-fn)
Returns an observable sequence that contains only distinct contiguous elements.
expand
(expand f)
(expand f c)
Recursively projects each source value to an Observable which is merged in the output Observable.
finalize
Returns an Observable that mirrors the source Observable, but will call a specified function when the source terminates on complete or error.
if-empty
Emits a given value if the source Observable completes without emitting any next value, otherwise mirrors the source Observable.
ignore
Ignores all elements in an observable sequence leaving only the termination messages.
mapcat
(mapcat f)
Projects each element of an observable sequence to an observable sequence and concatenates the resulting observable sequences or Promises or array/iterable into one observable sequence.
merge-all
Merges an observable sequence of observable sequences into an observable sequence.
merge-map
(merge-map f)
(merge-map f concurrency)
Projects each element of an observable sequence to an observable sequence and merges the resulting observable sequences or Promises or array/iterable into one observable sequence.
In other languages is called: flatMap or mergeMap.
merge-scan
(merge-scan f seed)
Applies an accumulator function over the source Observable where the accumulator function itself returns an Observable, then each intermediate Observable returned is merged into the output Observable.
reduce
(reduce f seed)
Applies an accumulator function over an observable sequence, returning the result of the aggregation as a single element in the result sequence.
retry
Given an optional number of retries and an observable, repeats the source observable the specified number of times or until it terminates. If no number of retries is given, it will be retried indefinitely.
scan
(scan f seed)
Applies an accumulator function over an observable sequence and returns each intermediate result. Same as reduce but with intermediate results
skip
Bypasses a specified number of elements in an observable sequence and then returns the remaining elements.
skip-last
(skip-last n)
Skip a specified number of values before the completion of an observable.
skip-until
(skip-until pob)
Returns the values from the source observable sequence only after the other observable sequence produces a value.
skip-while
(skip-while f)
Bypasses elements in an observable sequence as long as a specified condition is true and then returns the remaining elements.
take
Bypasses a specified number of elements in an observable sequence and then returns the remaining elements.
take-until
Returns the values from the source observable sequence until the other observable sequence or Promise produces a value.
take-while
(take-while f)
Returns elements from an observable sequence as long as a specified predicate returns true.
tap
(tap f)
(tap f e)
(tap f e c)
Invokes an action for each element in the observable sequence.
throttle
(throttle ms)
(throttle ms config)
Returns an observable sequence that emits only the first item emitted by the source Observable during sequential time windows of a specified duration.
(operator only)
timeout
(timeout ms)
(timeout ms with)
Returns the source observable sequence or the other observable sequence if dueTime elapses.
with-latest
Merges the specified observable sequences into one observable sequence by using the selector function only when the source observable sequence (the instance) produces an element.
(operator)