abort

fun abort(reason: JsError? = definedExternally)(source)

The abort() method of the AbortController interface aborts an asynchronous operation before it has completed.

MDN Reference