Package com.inmobi.media.utils
Class CoroutineUtilsKt
-
- All Implemented Interfaces:
public final class CoroutineUtilsKt
-
-
Method Summary
Modifier and Type Method Description final static BooleanaddTo(Job $self, List<Job> activeJobs)final static UnitclearActiveJobs(List<Job> $self)final static CoroutineScopechildScope(CoroutineScope $self)final static CoroutineScopechildMainScope(CoroutineScope $self, CoroutineExceptionHandler coroutineExceptionHandler)final static JoblaunchMain(CoroutineScope $self, SuspendFunction1<CoroutineScope, Unit> block)final static <T extends Any> JobcollectIn(Flow<T> $self, CoroutineScope scope, SuspendFunction2<CoroutineScope, T, Unit> block)final static <T extends Any> JobcollectIn(Flow<T> $self, CoroutineScope scope, CoroutineDispatcher dispatcher, SuspendFunction2<CoroutineScope, T, Unit> block)final static <T extends Any> JobcollectIn(Flow<T> $self, CoroutineScope scope, FlowCollector<T> collector)final static <T extends Any> UnitemitIn(MutableSharedFlow<T> $self, CoroutineScope scope, T t)final static <T extends Any> UnitwithLock(Mutex $self, CoroutineScope coroutineScope, Function0<T> action)final static <T extends Any> UnitsafeResume(CancellableContinuation<T> $self, T t)final static <T extends Any> UnitsafeResumeWithException(CancellableContinuation<T> $self, Throwable t)-
-
Method Detail
-
clearActiveJobs
final static Unit clearActiveJobs(List<Job> $self)
-
childScope
final static CoroutineScope childScope(CoroutineScope $self)
-
childMainScope
final static CoroutineScope childMainScope(CoroutineScope $self, CoroutineExceptionHandler coroutineExceptionHandler)
-
launchMain
final static Job launchMain(CoroutineScope $self, SuspendFunction1<CoroutineScope, Unit> block)
-
collectIn
final static <T extends Any> Job collectIn(Flow<T> $self, CoroutineScope scope, SuspendFunction2<CoroutineScope, T, Unit> block)
-
collectIn
final static <T extends Any> Job collectIn(Flow<T> $self, CoroutineScope scope, CoroutineDispatcher dispatcher, SuspendFunction2<CoroutineScope, T, Unit> block)
-
collectIn
final static <T extends Any> Job collectIn(Flow<T> $self, CoroutineScope scope, FlowCollector<T> collector)
-
emitIn
final static <T extends Any> Unit emitIn(MutableSharedFlow<T> $self, CoroutineScope scope, T t)
-
withLock
final static <T extends Any> Unit withLock(Mutex $self, CoroutineScope coroutineScope, Function0<T> action)
-
safeResume
final static <T extends Any> Unit safeResume(CancellableContinuation<T> $self, T t)
-
safeResumeWithException
final static <T extends Any> Unit safeResumeWithException(CancellableContinuation<T> $self, Throwable t)
-
-
-
-