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)

buffer-until

Buffers the source Observable values until notifier emits.

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-at-least

(delay-at-least ms)

Time shifts at least ms milisseconds.

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.

filter

(filter f)

Filters the elements of an observable sequence based on a predicate.

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.

map

(map f)

map-indexed

(map-indexed)(map-indexed f)

Same as map but also projects an index.

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.

mapcat-indexed

(mapcat-indexed f)

Indexed variant of mapcat

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.

observe-on

(observe-on sch)(observe-on sch delay)

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.

sample

Samples the observable sequence at each interval.

sample-when

Samples the observable sequence at each interval.

scan

(scan f seed)

Applies an accumulator function over an observable sequence and returns each intermediate result. Same as reduce but with intermediate results

share

Returns an observable sequence that shares a single subscription to the underlying sequence.

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.

subscribe-on

(subscribe-on sch)(subscribe-on sch delay)

switch-map

(switch-map f)

take

Bypasses a specified number of elements in an observable sequence and then returns the remaining elements.

take-last

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.

transform

(transform xform)

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)