public class SwitchableExecutor extends AlwaysEmitter implements InterruptableExecutor
PushEmitter.CompanionEmitter.CompanionCompanion| Constructor and Description |
|---|
SwitchableExecutor(Emitter<java.lang.Boolean> isActive,
kotlin.jvm.functions.Function0<org.hnau.emitter.utils.executors.job.FinishableExecutor.CancellableContext> cancellableContextCreator) |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.Boolean |
getValue() |
kotlinx.coroutines.Job |
invoke(kotlin.jvm.functions.Function2<? super kotlinx.coroutines.CoroutineScope,? super kotlin.coroutines.Continuation<? super kotlin.Unit>,? extends java.lang.Object> coroutine) |
getValue, tryGetValueonAttached, onChanged, tryGetValueafterLastDetached, beforeFirstAttached, call, observe, onAttached, onDetachedpublic SwitchableExecutor(@NotNull
Emitter<java.lang.Boolean> isActive,
@NotNull
kotlin.jvm.functions.Function0<org.hnau.emitter.utils.executors.job.FinishableExecutor.CancellableContext> cancellableContextCreator)
@NotNull protected java.lang.Boolean getValue()
@NotNull
public kotlinx.coroutines.Job invoke(@NotNull
kotlin.jvm.functions.Function2<? super kotlinx.coroutines.CoroutineScope,? super kotlin.coroutines.Continuation<? super kotlin.Unit>,? extends java.lang.Object> coroutine)