diff options
author | Luke Wilde <lukew@serenityos.org> | 2021-09-02 02:12:49 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-09-02 09:12:17 +0200 |
commit | 1d8f8ea5b141d969803ba060cd0f15f2137a1758 (patch) | |
tree | 4eea8cadebd9e5247bc009d472cd5e8d617ce67d /Userland/Libraries/LibWeb/DOM/AbortController.idl | |
parent | dd1a49ff93cfed8bfaaaa90afdc2b75b280099df (diff) | |
download | serenity-1d8f8ea5b141d969803ba060cd0f15f2137a1758.zip |
LibWeb: Add initial support for AbortController and AbortSignal
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
Diffstat (limited to 'Userland/Libraries/LibWeb/DOM/AbortController.idl')
-rw-r--r-- | Userland/Libraries/LibWeb/DOM/AbortController.idl | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/DOM/AbortController.idl b/Userland/Libraries/LibWeb/DOM/AbortController.idl new file mode 100644 index 0000000000..4877c9295e --- /dev/null +++ b/Userland/Libraries/LibWeb/DOM/AbortController.idl @@ -0,0 +1,8 @@ +[Exposed=(Window,Worker)] +interface AbortController { + constructor(); + + [SameObject] readonly attribute AbortSignal signal; + + undefined abort(); +}; |