AbortController

@native @JSGlobal @JSType
class AbortController() extends Object

The AbortController interface represents a controller object that allows you to abort one or more DOM requests as and when desired.

class Object
trait Any
class Object
trait Matchable
class Any

Value members

Concrete methods

def abort(): Unit

Aborts a DOM request before it has completed. This is able to abort fetch requests, consumption of any response Body, and streams.

Aborts a DOM request before it has completed. This is able to abort fetch requests, consumption of any response Body, and streams.

Inherited methods

def hasOwnProperty(v: String): Boolean
Inherited from:
Object
def isPrototypeOf(v: Object): Boolean
Inherited from:
Object
def propertyIsEnumerable(v: String): Boolean
Inherited from:
Object
def toLocaleString(): String
Inherited from:
Object
def valueOf(): Any
Inherited from:
Object

Concrete fields

Returns a AbortSignal object instance, which can be used to communicate with/abort a DOM request

Returns a AbortSignal object instance, which can be used to communicate with/abort a DOM request