
The DOM specification says that the primary use case for these is to give Promises abort semantics. It is also a prerequisite for Fetch, as it is used to make Fetch abortable. a
8 lines
209 B
Text
8 lines
209 B
Text
[Exposed=(Window,Worker)]
|
|
interface AbortSignal : EventTarget {
|
|
// FIXME: [NewObject] static AbortSignal abort();
|
|
|
|
readonly attribute boolean aborted;
|
|
|
|
// FIXME: attribute EventHandler onabort;
|
|
};
|