Please enable JavaScript.
Coggle requires JavaScript to display documents.
rxjs (2) Observables a defined stream of events (methods (pipe,…
rxjs
-
-
2) Observer / Subscription represents the actual execution flow of events (initiating a subscription basically “turns on” the execution)
-
-
4) Subject an event emitter that can be used for multicasting. These are special and used so that you can essentially inject emitters in your programs.
-
3) Operators are “pure” functions that can invoke flows with subscriptions. These have different forms that can either create a stream or reproduce a stream in a pipeable flow.
AREA
-
Connectable Observable
Replay — ensure that all observers see the same sequence of emitted items, even if they subscribe after the Observable has begun emitting
-
-
-
Backpressure
backpressure operators — strategies for coping with Observables that produce items more rapidly than their observers consume them
-
Conditional and Boolean
-
TakeUntil — discard items emitted by an Observable after a second Observable emits an item or terminates
-
-
-
DefaultIfEmpty — emit items from the source Observable, or a default item if the source Observable emits nothing
-
Amb — given two or more source Observables, emit all of the items from only the first of these Observables to emit an item
-
Utility
-
-
Timeout — mirror the source Observable, but issue an error notification if a particular period of time elapses without any emitted items
TimeInterval — convert an Observable that emits items into one that emits indications of the amount of time elapsed between those emissions
-
-
-
-
Materialize/Dematerialize — represent both the items emitted and the notifications sent as emitted items, or reverse this process
-
-
Error Handling
-
Retry — if a source Observable sends an onError notification, resubscribe to it in the hopes that it will complete without error
Combining
Zip — combine the emissions of multiple Observables together via a specified function and emit single items for each combination based on the results of this function
Switch — convert an Observable that emits Observables into a single Observable that emits the items emitted by the most-recently-emitted of those Observables
StartWith — emit a specified sequence of items before beginning to emit the items from the source Observable
-
Join — combine items emitted by two Observables whenever an item from one Observable is emitted during a time window defined according to an item emitted by the other Observable
CombineLatest — when an item is emitted by either of two Observables, combine the latest item emitted by each Observable via a specified function and emit items based on the results of this function
And/Then/When — combine sets of items emitted by two or more Observables by means of Pattern and Plan intermediaries
Filtering
-
-
-
-
-
-
-
First — emit only the first item, or the first item that meets a condition, from an Observable
-
-
-
Debounce — only emit an item from an Observable if a particular timespan has passed without it emitting another item
Transforming
Window — periodically subdivide items from an Observable into Observable windows and emit these windows rather than emitting the items one at a time
Scan — apply a function to each item emitted by an Observable, sequentially, and emit each successive value
-
GroupBy — divide an Observable into a set of Observables that each emit a different group of items from the original Observable, organized by key
FlatMap — transform the items emitted by an Observable into Observables, then flatten the emissions from those into a single Observable
Buffer — periodically gather items from an Observable into bundles and emit these bundles rather than emitting the items one at a time
Creating
ajax Create an observable for an Ajax request with either a request object with url, headers, etc or a string for a URL.
-
-
-
-
-
Interval — create an Observable that emits a sequence of integers spaced by a particular time interval
-
-
Defer — do not create the Observable until the observer subscribes, and create a fresh Observable for each observer
-
Most used
Creation from,fromEvent, of
Combination combineLatest, concat, merge, startWith , withLatestFrom, zip
Filtering debounceTime, distinctUntilChanged, filter, take, takeUntil
Transformation bufferTime, concatMap, map, mergeMap, scan, switchMap
-
-
-
6) Scheduler these help with concurrency and are really a more advanced RxJS topic. I’m just including it here for completeness.
-