Open jzheng23 opened 10 months ago
suspend fun run() { try { while (currentProgress < maxProgress) { delay(progressDelayMillis) currentProgress += progressIncrement } } catch (e: CancellationException) { Log.e("RaceParticipant", "$name: ${e.message}") throw e // Always re-throw CancellationException. } }
Cannot catch an error
Cannot catch an error