EventStream | baconjs (original) (raw)
Constructors
constructor
Methods
awaiting
- awaiting(other: Observable<any>): Property<boolean>
Parameters
Returns Property<boolean>
bufferWithCount
- bufferWithCount(count: number): EventStream<V[]>
Parameters
bufferWithTime
bufferWithTimeOrCount
- bufferWithTimeOrCount(delay?: number | DelayFunction, count?: undefined | number): EventStream<V[]>
Parameters
Optional count: undefined | number
bufferingThrottle
- bufferingThrottle(minimumInterval: number): this
Parameters
Returns this
changes
combine
- combine<V2, R>(right: Observable<V2>, f: Function2<V, V2, R>): Property<R>
Type parameters
Parameters
concat
- concat(other: Observable<V>, options?: EventStreamOptions): EventStream<V>
- concat(other: Observable<V2>, options?: EventStreamOptions): EventStream<V | V2>
Parameters
other: Observable<V>
Optional options: EventStreamOptions
Parameters
other: Observable<V2>
Optional options: EventStreamOptions
debounce
- debounce(minimumInterval: number): this
Parameters
Returns this
- debounceImmediate(minimumInterval: number): this
Parameters
Returns this
decode
Parameters
delay
- delay(delayMs: number): this
Parameters
Returns this
deps
- deps(): Observable<any>[]
Returns Observable<any>[]
diff
Parameters
doAction
- doAction(f: Function1<V, any>): this
Parameters
Returns this
doEnd
Returns this
doError
- doError(f: Function1<any, any>): this
Parameters
Returns this
doLog
- doLog(...args: any[]): this
Parameters
Returns this
endAsValue
- endAsValue(): Observable<{}>
Returns Observable<{}>
endOnError
- endOnError(predicate?: Predicate<any>): this
Parameters
Default value predicate: Predicate<any> = x => true
Returns this
errors
- errors(): this
Returns this
filter
Parameters
Returns this
first
- first(): this
Returns this
firstToPromise
- firstToPromise(PromiseCtr?: Function): Promise<V>
Parameters
Optional PromiseCtr: Function
flatMap
Parameters
flatMapConcat
Parameters
flatMapError
Parameters
flatMapEvent
Parameters
flatMapFirst
Parameters
flatMapLatest
Parameters
flatMapWithConcurrencyLimit
Parameters
flatScan
- flatScan(seed: V2, f: Function2<V2, V, Observable<V2>>): Property<V2>
Type parameters
Parameters
fold
Parameters
forEach
- forEach(f?: Sink<V>): Unsub
Parameters
Default value f: Sink<V> = nullSink
groupBy
Parameters
holdWhen
inspect
- inspect(): string
Returns string
internalDeps
- internalDeps(): any[]
Returns any[]
last
- last(): this
Returns this
log
- log(...args: any[]): this
Parameters
Returns this
map
Parameters
Parameters
mapEnd
Returns this
mapError
- mapError(f: Function1<any, V> | V): this
Parameters
Returns this
merge
Parameters
name
- name(name: string): this
Parameters
Returns this
not
onEnd
onError
- onError(f?: Sink<any>): Unsub
Parameters
Default value f: Sink<any> = nullSink
onValue
- onValue(f?: Sink<V>): Unsub
Parameters
Default value f: Sink<V> = nullSink
onValues
- onValues(f: Function): Unsub
Parameters
reduce
Parameters
sampledBy
Returns Observable<V>
scan
Parameters
skip
- skip(count: number): this
Parameters
Returns this
skipDuplicates
- skipDuplicates(isEqual?: Equals<V>): this
Parameters
Returns this
skipErrors
- skipErrors(): this
Returns this
skipUntil
- skipUntil(starter: Observable<any>): this
Parameters
Returns this
skipWhile
Returns this
slidingWindow
- slidingWindow(maxValues: number, minValues?: number): Property<V[]>
Parameters
maxValues: number
Default value minValues: number = 0
startWith
subscribe
take
- take(count: number): this
Parameters
Returns this
takeUntil
- takeUntil(stopper: Observable<any>): this
Parameters
Returns this
takeWhile
Returns this
throttle
- throttle(minimumInterval: number): this
Parameters
Returns this
toEventStream
- toEventStream(): this
Returns this
toPromise
- toPromise(PromiseCtr?: Function): Promise<V>
Parameters
Optional PromiseCtr: Function
toProperty
- toProperty(initValue?: V): Property<V>
Parameters
toString
- toString(): string
Returns string
Parameters
withDesc
- withDesc(desc?: Desc): this
Parameters
Returns this
withDescription
- withDescription(context: any, method: string, ...args: any[]): this
Parameters
context: any
method: string
Rest ...args: any[]
Returns this
withLatestFrom
- withLatestFrom<V2, R>(samplee: Observable<V2>, f: Function2<V, V2, R>): EventStream<R>
Type parameters
Parameters
withStateMachine
- withStateMachine<State, Out>(initState: State, f: StateF<V, State, Out>): EventStream<Out>
Type parameters
Parameters
initState: State
f: StateF<V, State, Out>
zip
Parameters