Convenience return type for reading data from a clone. Use as a
Promise
with .then or await to obtain the results as an array of identified
Subjects (with a graph mode). Use as an
Observable with .subscribe
(or other RxJS methods) to be notified of individual Subjects as they arrive.
Or consume the results one-by-one with backpressure using Flowable.consume.
If results are consumed outside the scope of a read procedure, they may be
affected by concurrent writes (this is equivalent to a
monotonic atomic view).
If the results are being used to strictly maintain a downstream data model,
use a read procedure and hold it open by returning completed.
TODO: Example
the function that is called when the Observable is
initially subscribed to. This function is given a Subscriber, to which new values
can be nexted, or an error method can be called to raise an error, or
complete can be called to notify of a successful completion.
Used as a NON-CANCELLABLE means of subscribing to an observable, for use with
APIs that expect promises, like async/await. You cannot unsubscribe from this.
WARNING: Only use this with observables you know will complete. If the source
observable does not complete, you will end up with a promise that is hung up, and
potentially all of the state of an async function hanging out in memory. To avoid
this situation, look into adding something like {@link timeout}, {@link take},
{@link takeWhile}, or {@link takeUntil} amongst others.
a promise that either resolves on observable completion or
rejects with the handled error
deprecated
Passing a Promise constructor will no longer be available
in upcoming versions of RxJS. This is because it adds weight to the library, for very
little benefit. If you need this functionality, it is recommended that you either
polyfill Promise, or you create an adapter to convert the returned native promise
to whatever promise implementation you wanted. Will be removed in v8.
Creates a new Observable, with this Observable instance as the source, and the passed
operator defined as the new observable's operator.
method
lift
deprecated
Internal implementation detail, do not use directly. Will be made internal in v8.
If you have implemented an operator using lift, it is recommended that you create an
operator by simply returning new Observable() directly. See "Creating new operators from
scratch" section here: https://rxjs.dev/guide/operators
Instead of passing separate callback arguments, use an observer argument. Signatures taking separate callback arguments will be removed in v8. Details: https://rxjs.dev/deprecations/subscribe-arguments
Convenience return type for reading data from a clone. Use as a Promise with
.then
orawait
to obtain the results as an array of identified Subjects (with a graph mode). Use as an Observable with.subscribe
(or other RxJS methods) to be notified of individual Subjects as they arrive. Or consume the results one-by-one with backpressure using Flowable.consume.If results are consumed outside the scope of a read procedure, they may be affected by concurrent writes (this is equivalent to a monotonic atomic view). If the results are being used to strictly maintain a downstream data model, use a read procedure and hold it open by returning completed. TODO: Example
MeldStateMachine.read