CompletableDisposablesOwner

interface CompletableDisposablesOwner

This interface gives your class ability to execute CompletableUseCase use cases and automatically add resulting disposables to one composite disposable. You may find handy to implement this interface in custom Presenters, ViewHolders etc.

Consider using DisposablesOwner to support all of the basic RxJava 2 types.

It is your responsibility to clear this composite disposable when all running tasks should be stopped.

Functions

equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
execute
Link copied to clipboard
open fun CompletableUseCase<Unit>.execute(config: CompletableUseCaseConfig.Builder.() -> Unit): Disposable
Executes the use case and adds its disposable to shared, automatically disposed, composite disposable.
open fun <ARGS> CompletableUseCase<ARGS>.execute(args: ARGS, config: CompletableUseCaseConfig.Builder.() -> Unit): Disposable
Executes the use case and adds its disposable to shared, automatically disposed, composite disposable.
executeStream
Link copied to clipboard
open fun Completable.executeStream(config: CompletableUseCaseConfig.Builder.() -> Unit): Disposable
Executes the Completable and adds its disposable to shared, automatically disposed, composite disposable.
hashCode
Link copied to clipboard
open fun hashCode(): Int
toString
Link copied to clipboard
open fun toString(): String

Properties

disposables
Link copied to clipboard
abstract val disposables: CompositeDisposable

Inheritors

DisposablesOwner
Link copied to clipboard