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:
- Source:
Members
aborted_ :boolean
Type:
- Source:
onabort :?function(!Event)
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