How to use rxjs.mergeAll:
83 84 85 86 87 88 89 90 91 92
car: cars[i], bookings, })) }), catchError((err) => error('cluster err', err)), mergeAll(), filter(({ bookings }) => bookings.length > 0), tap(({ car, bookings }) => info( `Plan ${car.id} (${car.fleet.name}) received ${bookings.length} bookings`
How to use rxjs.scan:
74 75 76 77 78 79 80 81 82 83
const downloadFiles$ = ({files, prefix, downloadDir, deleteAfterDownload}) => { return of(files).pipe( switchMap(files => of(...files)), mergeMap(file => downloadFile$({file, prefix, downloadDir, deleteAfterDownload}), CONCURRENT_FILE_DOWNLOAD), scan((currentProgress, fileProgress) => getProgress({ files, currentProgress, fileProgress }), initialState(files))
See more examples
How to use rxjs.expand:
117 118 119 120 121 122 123 124 125 126
} return createDirs$(path.dirname(toFilePath)).pipe( switchMap(() => downloadChunk$(0).pipe( expand(({end, length}) => { let downloaded = isDownloaded({end, length}) return downloaded ? EMPTY : downloadChunk$(end + 1) }) )
See more examples
How to use rxjs.share:
89 90 91 92 93 94 95 96 97 98
}) experiment.bookingUpdates = experiment.dispatchedBookings.pipe( mergeMap((booking) => booking.statusEvents), catchError((err) => error('bookingUpdates', err)), share() ) experiment.passengerUpdates = experiment.passengers.pipe( mergeMap(({ deliveredEvents, pickedUpEvents }) =>
How to use rxjs.repeat:
308 309 310 311 312 313 314 315 316 317 318 319 320
// answer.engineerEmail, // answer.engineerGitHub // ); // team.push(engineer); // repeat(); // }; // // Questions for inputting information and adding intern
How to use rxjs.retry:
10 11 12 13 14 15 16 17 18 19 20
// tap(e => console.info('after', e)), catchError(e => { console.error('fn errored', e) throw new Error() }), retry(1), ) range(10) .pipe(
How to use rxjs.take:
20 21 22 23 24 25 26 27 28 29 30 31 32
// genrate events of type myEvent rx.interval(450).pipe( rx.take(5) ).forEach( i => mee.emit('myEvent', 'Hello event ' + i) );
See more examples
How to use rxjs.queueScheduler:
GitHub: caosbad/api
21 22 23 24 25 26 27 28 29 30
exports.asap = rxjs.asap; exports.asapScheduler = rxjs.asapScheduler; exports.async = rxjs.async; exports.asyncScheduler = rxjs.asyncScheduler; exports.queue = rxjs.queue; exports.queueScheduler = rxjs.queueScheduler; exports.animationFrame = rxjs.animationFrame; exports.animationFrameScheduler = rxjs.animationFrameScheduler; exports.VirtualTimeScheduler = rxjs.VirtualTimeScheduler; exports.VirtualAction = rxjs.VirtualAction;
See more examples
How to use rxjs.queue:
GitHub: caosbad/api
20 21 22 23 24 25 26 27 28 29
exports.AsyncSubject = rxjs.AsyncSubject; exports.asap = rxjs.asap; exports.asapScheduler = rxjs.asapScheduler; exports.async = rxjs.async; exports.asyncScheduler = rxjs.asyncScheduler; exports.queue = rxjs.queue; exports.queueScheduler = rxjs.queueScheduler; exports.animationFrame = rxjs.animationFrame; exports.animationFrameScheduler = rxjs.animationFrameScheduler; exports.VirtualTimeScheduler = rxjs.VirtualTimeScheduler;
See more examples
How to use rxjs.VirtualAction:
GitHub: caosbad/api
25 26 27 28 29 30 31 32 33 34
exports.queue = rxjs.queue; exports.queueScheduler = rxjs.queueScheduler; exports.animationFrame = rxjs.animationFrame; exports.animationFrameScheduler = rxjs.animationFrameScheduler; exports.VirtualTimeScheduler = rxjs.VirtualTimeScheduler; exports.VirtualAction = rxjs.VirtualAction; exports.Scheduler = rxjs.Scheduler; exports.Subscription = rxjs.Subscription; exports.Subscriber = rxjs.Subscriber; exports.Notification = rxjs.Notification;
See more examples
How to use rxjs.UnsubscriptionError:
GitHub: caosbad/api
38 39 40 41 42 43 44 45 46 47
exports.identity = rxjs.identity; exports.isObservable = rxjs.isObservable; exports.ArgumentOutOfRangeError = rxjs.ArgumentOutOfRangeError; exports.EmptyError = rxjs.EmptyError; exports.ObjectUnsubscribedError = rxjs.ObjectUnsubscribedError; exports.UnsubscriptionError = rxjs.UnsubscriptionError; exports.TimeoutError = rxjs.TimeoutError; exports.bindCallback = rxjs.bindCallback; exports.bindNodeCallback = rxjs.bindNodeCallback; exports.combineLatest = rxjs.combineLatest;
See more examples
How to use rxjs.GroupedObservable:
GitHub: caosbad/api
10 11 12 13 14 15 16 17 18 19
const rxjs = require('rxjs'); exports.Observable = rxjs.Observable; exports.ConnectableObservable = rxjs.ConnectableObservable; exports.GroupedObservable = rxjs.GroupedObservable; exports.observable = rxjs.observable; exports.Subject = rxjs.Subject; exports.BehaviorSubject = rxjs.BehaviorSubject; exports.ReplaySubject = rxjs.ReplaySubject;
See more examples
How to use rxjs.EmptyError:
GitHub: caosbad/api
36 37 38 39 40 41 42 43 44 45
exports.pipe = rxjs.pipe; exports.noop = rxjs.noop; exports.identity = rxjs.identity; exports.isObservable = rxjs.isObservable; exports.ArgumentOutOfRangeError = rxjs.ArgumentOutOfRangeError; exports.EmptyError = rxjs.EmptyError; exports.ObjectUnsubscribedError = rxjs.ObjectUnsubscribedError; exports.UnsubscriptionError = rxjs.UnsubscriptionError; exports.TimeoutError = rxjs.TimeoutError; exports.bindCallback = rxjs.bindCallback;
See more examples
How to use rxjs.mapTo:
GitHub: VEGMQAZ/sepal
22 23 24 25 26 27 28 29 30 31
mergeMap(instance => timer(maxIdleMilliseconds).pipe( takeUntil(lock$.pipe( filter(currentInstance => currentInstance === instance) )), mapTo(instance) ) ) ).subscribe({ next: instance => dispose(instance),
How to use rxjs.identity:
GitHub: caosbad/api
33 34 35 36 37 38 39 40 41 42
exports.Subscriber = rxjs.Subscriber; exports.Notification = rxjs.Notification; exports.NotificationKind = rxjs.NotificationKind; exports.pipe = rxjs.pipe; exports.noop = rxjs.noop; exports.identity = rxjs.identity; exports.isObservable = rxjs.isObservable; exports.ArgumentOutOfRangeError = rxjs.ArgumentOutOfRangeError; exports.EmptyError = rxjs.EmptyError; exports.ObjectUnsubscribedError = rxjs.ObjectUnsubscribedError;
See more examples
How to use rxjs.Subscriber:
GitHub: caosbad/api
28 29 30 31 32 33 34 35 36 37
exports.animationFrameScheduler = rxjs.animationFrameScheduler; exports.VirtualTimeScheduler = rxjs.VirtualTimeScheduler; exports.VirtualAction = rxjs.VirtualAction; exports.Scheduler = rxjs.Scheduler; exports.Subscription = rxjs.Subscription; exports.Subscriber = rxjs.Subscriber; exports.Notification = rxjs.Notification; exports.NotificationKind = rxjs.NotificationKind; exports.pipe = rxjs.pipe; exports.noop = rxjs.noop;
See more examples
How to use rxjs.takeWhile:
GitHub: openforis/sepal
49 50 51 52 53 54 55 56 57 58
(error || state === FAILED) ? throwError(() => new Error(error)) : of(state) ), distinctUntilChanged(), takeWhile(state => isRunning(state)), map(toProgress) ) const toProgress = state => {
See more examples
How to use rxjs.generate:
GitHub: caosbad/api
50 51 52 53 54 55 56 57 58 59
exports.empty = rxjs.empty; exports.forkJoin = rxjs.forkJoin; exports.from = rxjs.from; exports.fromEvent = rxjs.fromEvent; exports.fromEventPattern = rxjs.fromEventPattern; exports.generate = rxjs.generate; exports.iif = rxjs.iif; exports.interval = rxjs.interval; exports.merge = rxjs.merge; exports.never = rxjs.never;
See more examples
How to use rxjs.TimeoutError:
GitHub: caosbad/api
39 40 41 42 43 44 45 46 47 48
exports.isObservable = rxjs.isObservable; exports.ArgumentOutOfRangeError = rxjs.ArgumentOutOfRangeError; exports.EmptyError = rxjs.EmptyError; exports.ObjectUnsubscribedError = rxjs.ObjectUnsubscribedError; exports.UnsubscriptionError = rxjs.UnsubscriptionError; exports.TimeoutError = rxjs.TimeoutError; exports.bindCallback = rxjs.bindCallback; exports.bindNodeCallback = rxjs.bindNodeCallback; exports.combineLatest = rxjs.combineLatest; exports.concat = rxjs.concat;
See more examples
How to use rxjs.asapScheduler:
GitHub: caosbad/api
17 18 19 20 21 22 23 24 25 26
exports.Subject = rxjs.Subject; exports.BehaviorSubject = rxjs.BehaviorSubject; exports.ReplaySubject = rxjs.ReplaySubject; exports.AsyncSubject = rxjs.AsyncSubject; exports.asap = rxjs.asap; exports.asapScheduler = rxjs.asapScheduler; exports.async = rxjs.async; exports.asyncScheduler = rxjs.asyncScheduler; exports.queue = rxjs.queue; exports.queueScheduler = rxjs.queueScheduler;
See more examples
How to use rxjs.partition:
GitHub: caosbad/api
58 59 60 61 62 63 64 65 66 67
exports.merge = rxjs.merge; exports.never = rxjs.never; exports.of = rxjs.of; exports.onErrorResumeNext = rxjs.onErrorResumeNext; exports.pairs = rxjs.pairs; exports.partition = rxjs.partition; exports.race = rxjs.race; exports.range = rxjs.range; exports.throwError = rxjs.throwError; exports.timer = rxjs.timer;
See more examples
How to use rxjs.ArgumentOutOfRangeError:
GitHub: caosbad/api
35 36 37 38 39 40 41 42 43 44
exports.NotificationKind = rxjs.NotificationKind; exports.pipe = rxjs.pipe; exports.noop = rxjs.noop; exports.identity = rxjs.identity; exports.isObservable = rxjs.isObservable; exports.ArgumentOutOfRangeError = rxjs.ArgumentOutOfRangeError; exports.EmptyError = rxjs.EmptyError; exports.ObjectUnsubscribedError = rxjs.ObjectUnsubscribedError; exports.UnsubscriptionError = rxjs.UnsubscriptionError; exports.TimeoutError = rxjs.TimeoutError;
See more examples
How to use rxjs.asyncScheduler:
GitHub: caosbad/api
19 20 21 22 23 24 25 26 27 28
exports.ReplaySubject = rxjs.ReplaySubject; exports.AsyncSubject = rxjs.AsyncSubject; exports.asap = rxjs.asap; exports.asapScheduler = rxjs.asapScheduler; exports.async = rxjs.async; exports.asyncScheduler = rxjs.asyncScheduler; exports.queue = rxjs.queue; exports.queueScheduler = rxjs.queueScheduler; exports.animationFrame = rxjs.animationFrame; exports.animationFrameScheduler = rxjs.animationFrameScheduler;
See more examples
How to use rxjs.fromEventPattern:
GitHub: caosbad/api
49 50 51 52 53 54 55 56 57 58
exports.defer = rxjs.defer; exports.empty = rxjs.empty; exports.forkJoin = rxjs.forkJoin; exports.from = rxjs.from; exports.fromEvent = rxjs.fromEvent; exports.fromEventPattern = rxjs.fromEventPattern; exports.generate = rxjs.generate; exports.iif = rxjs.iif; exports.interval = rxjs.interval; exports.merge = rxjs.merge;
See more examples
How to use rxjs.animationFrameScheduler:
GitHub: caosbad/api
23 24 25 26 27 28 29 30 31 32
exports.async = rxjs.async; exports.asyncScheduler = rxjs.asyncScheduler; exports.queue = rxjs.queue; exports.queueScheduler = rxjs.queueScheduler; exports.animationFrame = rxjs.animationFrame; exports.animationFrameScheduler = rxjs.animationFrameScheduler; exports.VirtualTimeScheduler = rxjs.VirtualTimeScheduler; exports.VirtualAction = rxjs.VirtualAction; exports.Scheduler = rxjs.Scheduler; exports.Subscription = rxjs.Subscription;
See more examples
How to use rxjs.asap:
GitHub: caosbad/api
16 17 18 19 20 21 22 23 24 25
exports.observable = rxjs.observable; exports.Subject = rxjs.Subject; exports.BehaviorSubject = rxjs.BehaviorSubject; exports.ReplaySubject = rxjs.ReplaySubject; exports.AsyncSubject = rxjs.AsyncSubject; exports.asap = rxjs.asap; exports.asapScheduler = rxjs.asapScheduler; exports.async = rxjs.async; exports.asyncScheduler = rxjs.asyncScheduler; exports.queue = rxjs.queue;
See more examples
How to use rxjs.VirtualTimeScheduler:
GitHub: caosbad/api
24 25 26 27 28 29 30 31 32 33
exports.asyncScheduler = rxjs.asyncScheduler; exports.queue = rxjs.queue; exports.queueScheduler = rxjs.queueScheduler; exports.animationFrame = rxjs.animationFrame; exports.animationFrameScheduler = rxjs.animationFrameScheduler; exports.VirtualTimeScheduler = rxjs.VirtualTimeScheduler; exports.VirtualAction = rxjs.VirtualAction; exports.Scheduler = rxjs.Scheduler; exports.Subscription = rxjs.Subscription; exports.Subscriber = rxjs.Subscriber;
See more examples
How to use rxjs.animationFrame:
GitHub: caosbad/api
22 23 24 25 26 27 28 29 30 31
exports.asapScheduler = rxjs.asapScheduler; exports.async = rxjs.async; exports.asyncScheduler = rxjs.asyncScheduler; exports.queue = rxjs.queue; exports.queueScheduler = rxjs.queueScheduler; exports.animationFrame = rxjs.animationFrame; exports.animationFrameScheduler = rxjs.animationFrameScheduler; exports.VirtualTimeScheduler = rxjs.VirtualTimeScheduler; exports.VirtualAction = rxjs.VirtualAction; exports.Scheduler = rxjs.Scheduler;
See more examples
How to use rxjs.using:
GitHub: caosbad/api
63 64 65 66 67 68 69 70 71 72
exports.partition = rxjs.partition; exports.race = rxjs.race; exports.range = rxjs.range; exports.throwError = rxjs.throwError; exports.timer = rxjs.timer; exports.using = rxjs.using; exports.zip = rxjs.zip; exports.scheduled = rxjs.scheduled; exports.EMPTY = rxjs.EMPTY; exports.NEVER = rxjs.NEVER;
See more examples
How to use rxjs.observable:
GitHub: caosbad/api
11 12 13 14 15 16 17 18 19 20
const rxjs = require('rxjs'); exports.Observable = rxjs.Observable; exports.ConnectableObservable = rxjs.ConnectableObservable; exports.GroupedObservable = rxjs.GroupedObservable; exports.observable = rxjs.observable; exports.Subject = rxjs.Subject; exports.BehaviorSubject = rxjs.BehaviorSubject; exports.ReplaySubject = rxjs.ReplaySubject; exports.AsyncSubject = rxjs.AsyncSubject;
See more examples