public static class CompletableDisposablesOwner.DefaultImpls
This interface gives your class ability to execute class 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 interface 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.
| Modifier and Type | Method and Description |
|---|---|
static io.reactivex.disposables.Disposable |
execute(CompletableDisposablesOwner $this,
CompletableUseCase<kotlin.Unit> $receiver,
kotlin.jvm.functions.Function1<? super app.futured.arkitekt.rxusecases.disposables.CompletableUseCaseConfig.Builder,kotlin.Unit> config)
Executes the use case and adds its disposable to
shared, automatically disposed, composite disposable. In case some
variant of
CompletableUseCase.execute method has already been called
on this instance of class CompletableUseCase, previous one is disposed,
no matter what current state of internal Completable is. This behavior
can be disabled by passing false to CompletableUseCaseConfig.disposePrevious
method. |
static <ARGS> io.reactivex.disposables.Disposable |
execute(CompletableDisposablesOwner $this,
CompletableUseCase<ARGS> $receiver,
ARGS args,
kotlin.jvm.functions.Function1<? super app.futured.arkitekt.rxusecases.disposables.CompletableUseCaseConfig.Builder,kotlin.Unit> config)
Executes the use case and adds its disposable to
shared, automatically disposed, composite disposable. In case some
variant of
CompletableUseCase.execute method has already been called
on this instance of class CompletableUseCase, previous one is disposed,
no matter what current state of internal Completable is. This behavior
can be disabled by passing false to CompletableUseCaseConfig.disposePrevious
method. |
static io.reactivex.disposables.Disposable |
executeStream(CompletableDisposablesOwner $this,
io.reactivex.Completable $receiver,
kotlin.jvm.functions.Function1<? super app.futured.arkitekt.rxusecases.disposables.CompletableUseCaseConfig.Builder,kotlin.Unit> config)
Executes the Completable and adds its disposable to
shared, automatically disposed, composite disposable.
|
@NotNull public static io.reactivex.disposables.Disposable execute(CompletableDisposablesOwner $this, @NotNull CompletableUseCase<kotlin.Unit> $receiver, @NotNull kotlin.jvm.functions.Function1<? super app.futured.arkitekt.rxusecases.disposables.CompletableUseCaseConfig.Builder,kotlin.Unit> config)
Executes the use case and adds its disposable to
shared, automatically disposed, composite disposable. In case some
variant of CompletableUseCase.execute method has already been called
on this instance of class CompletableUseCase, previous one is disposed,
no matter what current state of internal Completable is. This behavior
can be disabled by passing false to CompletableUseCaseConfig.disposePrevious
method.
$receiver - CompletablerConfig used to process results of internal Completable.config - CompletablerConfig used to process results of internal Completable.CompletableUseCase.execute,
class CompletableUseCase@NotNull public static <ARGS> io.reactivex.disposables.Disposable execute(CompletableDisposablesOwner $this, @NotNull CompletableUseCase<ARGS> $receiver, ARGS args, @NotNull kotlin.jvm.functions.Function1<? super app.futured.arkitekt.rxusecases.disposables.CompletableUseCaseConfig.Builder,kotlin.Unit> config)
Executes the use case and adds its disposable to
shared, automatically disposed, composite disposable. In case some
variant of CompletableUseCase.execute method has already been called
on this instance of class CompletableUseCase, previous one is disposed,
no matter what current state of internal Completable is. This behavior
can be disabled by passing false to CompletableUseCaseConfig.disposePrevious
method.
$receiver - Arguments used for initial use case initialisation.args - class CompletableUseCaseConfig used to process results of internal Completable.config - class CompletableUseCaseConfig used to process results of internal Completable.CompletableUseCase.execute,
class CompletableUseCase@NotNull public static io.reactivex.disposables.Disposable executeStream(CompletableDisposablesOwner $this, @NotNull io.reactivex.Completable $receiver, @NotNull kotlin.jvm.functions.Function1<? super app.futured.arkitekt.rxusecases.disposables.CompletableUseCaseConfig.Builder,kotlin.Unit> config)
Executes the Completable and adds its disposable to shared, automatically disposed, composite disposable.
$receiver - class CompletableUseCaseConfig used to process results of internal Completable.config - class CompletableUseCaseConfig used to process results of internal Completable.