Skip to content

AbortController

Types

t

type t = WebAPI.DOM.abortController = private {
signal: WebAPI.DOM.abortSignal,
}

Record fields

signal

Returns the AbortSignal object associated with this object. Read more on MDN

Values

abort

Invoking this method will set this object's AbortSignal's aborted flag and signal to any observers that the associated activity is to be aborted. Read more on MDN

let abort: (WebAPI.DOM.abortController, ~reason: JSON.t=?) => unit

Parameters

~reason: JSON.t=?

Return type

unit

make

let make: unit => WebAPI.DOM.abortController

Parameters

unit

Return type

WebAPI.DOM.abortController