-
public final class GlobalScopeExtKt
-
-
Method Summary
Modifier and Type Method Description final static JoblaunchGlobalMain(Long delayTime, SuspendFunction1<CoroutineScope, Unit> func)Author: bin.yang Maintainer: bin.yang Date: 2020/3/11 Copyright: 2020 Inc. final static JoblaunchGlobalIO(Long delayTime, SuspendFunction1<CoroutineScope, Unit> func)final static JoblaunchGlobalDefault(Long delayTime, SuspendFunction0<Unit> func)final static JoblaunchMain(CoroutineScope $self, Long delayTime, SuspendFunction1<CoroutineScope, Unit> func)final static JoblaunchMain(ViewModel $self, Long delayTime, SuspendFunction1<CoroutineScope, Unit> func)final static JoblaunchIO(CoroutineScope $self, Long delayTime, SuspendFunction1<CoroutineScope, Unit> func)final static JoblaunchIO(ViewModel $self, Long delayTime, SuspendFunction1<CoroutineScope, Unit> func)final static JoblaunchDefault(CoroutineScope $self, Long delayTime, SuspendFunction1<CoroutineScope, Unit> func)final static JoblaunchDefault(ViewModel $self, Long delayTime, SuspendFunction1<CoroutineScope, Unit> func)final static UnitwithContextMain(CoroutineScope $self, Long delayTime, SuspendFunction1<CoroutineScope, Unit> func)final static UnitwithContextIO(CoroutineScope $self, Long delayTime, SuspendFunction1<CoroutineScope, Unit> func)final static <T extends Any> <ERROR CLASS>blockForResult(Long timeOut, Function1<CancellableContinuation<T>, Unit> block)阻塞函数,等待返回一个结果 -
-
Method Detail
-
launchGlobalMain
final static Job launchGlobalMain(Long delayTime, SuspendFunction1<CoroutineScope, Unit> func)
Author: bin.yang Maintainer: bin.yang Date: 2020/3/11 Copyright: 2020 Inc. All rights reserved. Desc:
-
launchGlobalIO
final static Job launchGlobalIO(Long delayTime, SuspendFunction1<CoroutineScope, Unit> func)
-
launchGlobalDefault
final static Job launchGlobalDefault(Long delayTime, SuspendFunction0<Unit> func)
-
launchMain
final static Job launchMain(CoroutineScope $self, Long delayTime, SuspendFunction1<CoroutineScope, Unit> func)
-
launchMain
final static Job launchMain(ViewModel $self, Long delayTime, SuspendFunction1<CoroutineScope, Unit> func)
-
launchIO
final static Job launchIO(CoroutineScope $self, Long delayTime, SuspendFunction1<CoroutineScope, Unit> func)
-
launchIO
final static Job launchIO(ViewModel $self, Long delayTime, SuspendFunction1<CoroutineScope, Unit> func)
-
launchDefault
final static Job launchDefault(CoroutineScope $self, Long delayTime, SuspendFunction1<CoroutineScope, Unit> func)
-
launchDefault
final static Job launchDefault(ViewModel $self, Long delayTime, SuspendFunction1<CoroutineScope, Unit> func)
-
withContextMain
final static Unit withContextMain(CoroutineScope $self, Long delayTime, SuspendFunction1<CoroutineScope, Unit> func)
-
withContextIO
final static Unit withContextIO(CoroutineScope $self, Long delayTime, SuspendFunction1<CoroutineScope, Unit> func)
-
blockForResult
final static <T extends Any> <ERROR CLASS> blockForResult(Long timeOut, Function1<CancellableContinuation<T>, Unit> block)
阻塞函数,等待返回一个结果
- Parameters:
timeOut- 加载超时时间
-
-
-
-