awaitException

expect suspend fun awaitException(): Throwable?

挂起协程直到撤回完成, 返回撤回时产生的异常. 当撤回成功时返回 null.

actual suspend fun awaitException(): Throwable?

挂起协程 (在 Java 为阻塞线程) 直到撤回完成, 返回撤回时产生的异常. 当撤回成功时返回 null.