Class CoroutineUtilsKt

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final static Boolean addTo(Job $self, List<Job> activeJobs)
      final static Unit clearActiveJobs(List<Job> $self)
      final static CoroutineScope childScope(CoroutineScope $self)
      final static CoroutineScope childMainScope(CoroutineScope $self, CoroutineExceptionHandler coroutineExceptionHandler)
      final static Job launchMain(CoroutineScope $self, SuspendFunction1<CoroutineScope, Unit> block)
      final static <T extends Any> Job collectIn(Flow<T> $self, CoroutineScope scope, SuspendFunction2<CoroutineScope, T, Unit> block)
      final static <T extends Any> Job collectIn(Flow<T> $self, CoroutineScope scope, CoroutineDispatcher dispatcher, SuspendFunction2<CoroutineScope, T, Unit> block)
      final static <T extends Any> Job collectIn(Flow<T> $self, CoroutineScope scope, FlowCollector<T> collector)
      final static <T extends Any> Unit emitIn(MutableSharedFlow<T> $self, CoroutineScope scope, T t)
      final static <T extends Any> Unit withLock(Mutex $self, CoroutineScope coroutineScope, Function0<T> action)
      final static <T extends Any> Unit safeResume(CancellableContinuation<T> $self, T t)
      final static <T extends Any> Unit safeResumeWithException(CancellableContinuation<T> $self, Throwable t)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • childScope

         final static CoroutineScope childScope(CoroutineScope $self)
      • childMainScope

         final static CoroutineScope childMainScope(CoroutineScope $self, CoroutineExceptionHandler coroutineExceptionHandler)
      • 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)