cancel

abstract fun cancel(reason: Throwable?)(source)
open fun cancel()(source)

终止当前 Application

在真正关闭 coroutineContext 中的 Job 之前, 会先通过 ApplicationLaunchStage.RequestCancel 触发, 结束后会再通过 ApplicationLaunchStage.Cancelled 触发。