Package-level declarations
Types
Represents a Source that either completes or produces an error.
Callbacks for Completable source. See Completable, CompleteCallback and ErrorCallback for more information.
Represents an emitter for Completable source. See Emitter and CompletableCallbacks for more information.
Represents an Observer of Completable source. See Observer and CompletableCallbacks for more information.
Wrappers are normally exposed to Swift. You can also extend the wrapper class if you need to expose any additional operators.
Functions
Runs multiple Completables and signals the events of the first one to terminate (disposing the rest).
Returns a Completable that first runs this Completable and waits for its completion, then runs the other Completable.
Returns an Observable that first runs this Completable and waits for its completion, then runs the other Maybe.
Returns an Observable that first runs this Completable and waits for its completion, then runs the other Observable.
Returns a Single that first runs this Completable and waits for its completion, then runs the other Single.
Converts this Completable into a Maybe.
Converts this Completable into an Observable.
Converts this Completable into a Single which emits the defaultValue when this Completable completes.
Converts this Completable into a Single which emits a value returned by defaultValueSupplier when this Completable completes.
Blocks current thread until the current Completable completes or fails with an exception (which is propagated). ⚠️ Please note that this method is not available in JavaScript due to its single threaded nature. A runtime exception will be thrown when this method is called in JavaScript. If you need this in JavaScript for testing purposes, then consider using Single.testAwait() extension from the reaktive-testing module.
Creates a Completable with manual signalling via CompletableEmitter.
Calls the supplier for each new observer and subscribes to the returned Completable.
Returns a Completable that calls the func shared function and then completes.
Returns a Completable that signals onComplete.
Returns a Completable that signals the specified error via onError.
Returns a Completable that never terminates.
Signals onComplete after the given delay.
⚠️ Advanced use only: creates an instance of Completable without any safeguards by calling onSubscribe with a CompletableObserver.
Returns a Completable that for each subscription acquires a new resource via resourceSupplier, then calls sourceSupplier and subscribes to the returned upstream Completable and disposes the resource via sourceSupplier when the upstream Completable is finished (either terminated or disposed).
Concatenates multiple Completable sources one by one into a Completable.
Concatenates multiple Completable sources one by one into a Completable.
Delays onComplete signal from the current Completable for the specified time. The onError signal is not delayed by default, which can be enabled by setting the delayError flag.
Delays the actual subscription to the Completable for the specified time.
Calls the action when the Completable signals onComplete. The action is called after the observer is called.
Calls the shared action when the Disposable sent to the observer via onSubscribe is disposed. The action is called after the upstream is disposed.
Calls the consumer with the emitted Throwable when the Completable signals onError. The consumer is called after the observer is called.
Calls the action when one of the following events occur:
Calls the shared action for each new observer with the Disposable sent to the downstream. The action is called for each new observer after its onSubscribe callback is called.
Calls the action when the Completable signals a terminal event: either onComplete or onError. The action is called after the observer is called.
Calls the action with the emitted value when the Completable signals onComplete. The action is called before the observer is called.
Calls the shared action when the Disposable sent to the observer via onSubscribe is disposed. The action is called before the upstream is disposed.
Calls the consumer with the emitted Throwable when the Completable signals onError. The consumer is called before the observer is called.
Calls the action when one of the following events occur:
Calls the shared action for each new observer with the Disposable sent to the downstream. The action is called for each new observer before its onSubscribe callback is called.
Calls the action when the Completable signals a terminal event: either onComplete or onError. The action is called before the observer is called.
Merges multiple Completables into one Completable, running all Completables simultaneously.
Merges multiple Completables into one Completable, running all Completables simultaneously.
Signals all events of the Completable on the specified Scheduler.
Returns a Completable which completes when this Completable signals onError.
When the Completable signals onError, resumes the flow with next Completable.
When the Completable signals onError, resumes the flow with a new Completable returned by nextSupplier.
When the Completable signals onComplete, re-subscribes to the Completable, times times.
When the Completable signals onComplete, re-subscribes to the Completable if the predicate function returns false.
When the Completable signals onComplete, re-subscribes to the Completable when the Maybe returned by the handler function emits a value.
When the Completable signals onError, re-subscribes to the Completable if the predicate returns true.
When the Completable signals onError, re-subscribes to the Completable, up to times times.
Returns a Completable that automatically resubscribes to this Completable if it signals onError and the Observable returned by the handler function emits a value for that specific Throwable.
Subscribes to the Completable and provides event callbacks.
Returns a Completable that subscribes to the source Completable on the specified Scheduler.
Disposes the current Completable if it does not signal within the timeout, and subscribes to other if provided.
A convenience extensions function for completableOfError.