public static enum Coroutine.Status extends Enum<Coroutine.Status>
Enum Constant and Description |
---|
DEAD
The status of a dead coroutine, i.e., a coroutine that has finished execution.
|
NORMAL
The status of a coroutine that is resuming another coroutine.
|
RUNNING
The status of a running coroutine, i.e., a coroutine that is currently executing.
|
SUSPENDED
The status of a suspended coroutine, i.e., a coroutine that may be resumed.
|
Modifier and Type | Method and Description |
---|---|
static Coroutine.Status |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Coroutine.Status[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Coroutine.Status SUSPENDED
public static final Coroutine.Status RUNNING
public static final Coroutine.Status NORMAL
public static final Coroutine.Status DEAD
public static Coroutine.Status[] values()
for (Coroutine.Status c : Coroutine.Status.values()) System.out.println(c);
public static Coroutine.Status 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 © 2016. All rights reserved.