
public final class CoroutineHelper extends Object
| Constructor and Description |
|---|
CoroutineHelper() |
| Modifier and Type | Method and Description |
|---|---|
static void |
yieldWithNoReason()
Suspend the currently running Coroutine on the calling thread.
|
static void |
yieldWithReason(YieldReason yieldReason)
Suspend the currently running Coroutine on the calling thread.
|
public static void yieldWithNoReason()
throws SuspendableException,
IllegalStateException
SuspendableException - This exception is used for control transfer - don't catch it !IllegalStateException - If not called from a Coroutinepublic static void yieldWithReason(YieldReason yieldReason) throws SuspendableException, IllegalStateException
SuspendableException - This exception is used for control transfer - don't catch it !IllegalStateException - If not called from a CoroutineCopyright © 2015 Rice University - Department of Computer Science. All rights reserved.