public class JobExecutor implements InterruptableExecutor
Emitter.Companion| Constructor and Description |
|---|
JobExecutor(Emitter<java.lang.Boolean> isActive) |
| Modifier and Type | Method and Description |
|---|---|
protected FinishableExecutor.CancellableContext |
createCancellableContext() |
protected kotlin.coroutines.CoroutineContext |
createCoroutineContext(kotlinx.coroutines.Job job) |
kotlinx.coroutines.Job |
invoke(kotlin.jvm.functions.Function2<? super kotlinx.coroutines.CoroutineScope,? super kotlin.coroutines.Continuation<? super kotlin.Unit>,? extends java.lang.Object> coroutine) |
Detacher |
observe(kotlin.jvm.functions.Function1<? super java.lang.Boolean,kotlin.Unit> observer) |
public JobExecutor(@NotNull
Emitter<java.lang.Boolean> isActive)
@NotNull public Detacher observe(@NotNull kotlin.jvm.functions.Function1<? super java.lang.Boolean,kotlin.Unit> observer)
@NotNull protected FinishableExecutor.CancellableContext createCancellableContext()
@NotNull
protected kotlin.coroutines.CoroutineContext createCoroutineContext(@NotNull
kotlinx.coroutines.Job job)
@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)