Class: shaka.polyfill.AbortController.AbortSignal

A polyfill for AbortSignal, part of the AbortController API.

Constructor

new AbortSignal()

A polyfill for AbortSignal, part of the AbortController API.

Implements:
  • AbortSignal
Source:

Members

aborted_ :boolean

Type:
  • boolean
Source:

onabort :?function(!Event)

Type:
  • ?function(!Event)
Source:

reason_ :*

Type:
  • *
Source:

Methods

abort(reasonopt) → {AbortSignal}

Parameters:
Name Type Attributes Description
reason * <optional>
Source:
Returns:
Type
AbortSignal

timeout(timeMs) → {AbortSignal}

Parameters:
Name Type Description
timeMs number
Source:
Returns:
Type
AbortSignal

doAbort_(reason)

Parameters:
Name Type Description
reason *
Source:

throwIfAborted() → {void}

Source:
Returns:
Type
void