public enum CoroutineState extends Enum<CoroutineState>
Enum Constant and Description |
---|
FINISHED
The Coroutine has finished it's run method
|
NEW
The Coroutine has not yet been executed
|
RUNNING
The Coroutine is currently executing
|
SUSPENDED
The Coroutine has suspended it's execution
|
Modifier and Type | Method and Description |
---|---|
static CoroutineState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CoroutineState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CoroutineState NEW
public static final CoroutineState RUNNING
public static final CoroutineState SUSPENDED
public static final CoroutineState FINISHED
CoroutineProto.coExecute()
public static CoroutineState[] values()
for (CoroutineState c : CoroutineState.values()) System.out.println(c);
public static CoroutineState valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2015 Rice University - Department of Computer Science. All rights reserved.