cancel

suspend fun cancel(reason: JsError? = definedExternally)(source)

MDN Reference