This is a painfully familiar problem to anyone working with async APIs: when your call encounters a failure, the async library\'s private thread detects it, creates an exception
Kotlin plugin for IntelliJ IDEA provides this possibility since version 1.4 (for versions 1.3.8 or later of kotlinx-coroutines-core).
kotlinx-coroutines-core