beicon.core
behavior-subject
(behavior-subject v)
Bus that emits the most recent item it has observed and all subsequent observed items to each subscribed Observer.
buffer
(buffer n ob)
(buffer n skip ob)
Projects each element of an observable sequence into zero or more buffers which are produced based on element count information.
catch
(catch handler ob)
(catch pred handler ob)
Continues an observable sequence that is terminated by an exception with the next observable sequence.
combine-latest
(combine-latest other ob)
(combine-latest f other ob)
Combines multiple Observables to create an Observable whose values are calculated from the latest values of each of its input Observables.
concat
(concat & more)
Concatenates all of the specified observable sequences, as long as the previous observable sequence terminated successfully.
debounce
(debounce ms ob)
Emits an item from the source Observable after a particular timespan has passed without the Observable omitting any other items.
dedupe
(dedupe ob)
(dedupe f ob)
Returns an observable sequence that contains only distinct contiguous elements.
dedupe'
(dedupe' ob)
(dedupe' f ob)
Returns an observable sequence that contains only d istinct elements. Usage of this operator should be considered carefully due to the maintenance of an internal lookup structure which can grow large.
delay
(delay ms ob)
Time shifts the observable sequence by dueTime. The relative time intervals between the values are preserved.
delay-when
(delay-when sf ob)
(delay-when sd sf ob)
Time shifts the observable sequence based on a subscription delay and a delay selector function for each element.
flat-map
(flat-map ob)
(flat-map f ob)
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.
ignore
(ignore ob)
Ignores all elements in an observable sequence leaving only the termination messages.
mapcat
(mapcat f ob)
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
(merge & more)
Merges all the observable sequences and Promises into a single observable sequence.
merge-all
(merge-all ob)
Merges an observable sequence of observable sequences into an observable sequence.
of
(of a)
(of a b)
(of a b c)
(of a b c d)
(of a b c d e)
(of a b c d e f)
(of a b c d e f & more)
Converts arguments to an observable sequence.
on-end
(on-end ob f)
Subscribes a function to invoke upon graceful termination of the observable sequence.
on-error
(on-error ob f)
Subscribes a function to invoke upon exceptional termination of the observable sequence.
pr-log
(pr-log ob)
(pr-log prefix ob)
Print all values passed through the given observable sequence using pr-str.
race
(race a b)
(race a b & more)
Create an observable that surfaces any of the given sequences, whichever reacted first.
reduce
(reduce f ob)
(reduce f seed ob)
Applies an accumulator function over an observable sequence, returning the result of the aggregation as a single element in the result sequence.
retry
(retry ob)
(retry n ob)
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 ob)
(scan f seed ob)
Applies an accumulator function over an observable sequence and returns each intermediate result. Same as reduce but with intermediate results
scheduler
(scheduler type)
Get the scheduler instance by type. The posible types are: :asap
, :async
, :queue
. Old :trampoline
type is renamed as :queue
and is deprecated.
skip
(skip n ob)
Bypasses a specified number of elements in an observable sequence and then returns the remaining elements.
skip-until
(skip-until pob ob)
Returns the values from the source observable sequence only after the other observable sequence produces a value.
skip-while
(skip-while f ob)
Bypasses elements in an observable sequence as long as a specified condition is true and then returns the remaining elements.
subject
(subject)
Subject that, once an Observer has subscribed, emits all subsequently observed items to the subscriber.
subscribe
(subscribe ob nf)
(subscribe ob nf ef)
(subscribe ob nf ef cf)
Subscribes an observer to the observable sequence.
subscribe-with
(subscribe-with ob observer)
Subscribes an observer or subscriber to the observable sequence.
take
(take n ob)
Bypasses a specified number of elements in an observable sequence and then returns the remaining elements.
take-until
(take-until other ob)
Returns the values from the source observable sequence until the other observable sequence or Promise produces a value.
take-while
(take-while f ob)
Returns elements from an observable sequence as long as a specified predicate returns true.
tap
(tap f ob)
(tap f g ob)
(tap f g e ob)
Invokes an action for each element in the observable sequence.
throttle
(throttle ms ob)
Returns an observable sequence that emits only the first item emitted by the source Observable during sequential time windows of a specified duration.
timeout
(timeout ms ob)
(timeout ms other ob)
Returns the source observable sequence or the other observable sequence if dueTime elapses.
timer
(timer delay)
(timer delay period)
Returns an observable sequence that produces a value after ms
has elapsed and then after each period.
with-latest
(with-latest f other source)
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.