public static String status(ExecutionContext context, Coroutine coroutine) { switch (context.getCoroutineStatus(coroutine)) { case SUSPENDED: return STATUS_SUSPENDED; case RUNNING: return STATUS_RUNNING; case NORMAL: return STATUS_NORMAL; case DEAD: return STATUS_DEAD; } throw new AssertionError(); // should never happen }