@FunctionalInterface
public static interface CoroutineScope.ScopeCode
CoroutineScope.launch(ScopeCode). It is typically
used in the form of a lambda expression or method reference.| Modifier and Type | Method and Description |
|---|---|
void |
runIn(CoroutineScope rScope)
Starts coroutines in the given
CoroutineScope by invoking
methods like CoroutineScope#async(Coroutine) on it and
optionally also performs other operations, like processing the
results. |
void runIn(CoroutineScope rScope) throws java.lang.Exception
CoroutineScope by invoking
methods like CoroutineScope#async(Coroutine) on it and
optionally also performs other operations, like processing the
results.rScope - The scope to run injava.lang.Exception - Executions may throw arbitrary exceptions which
will be handled by the scope