summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/DOM/AbortSignal.idl
blob: 4c11a9ba6ac10274a6d29086960a1970b00c2009 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#import <DOM/EventTarget.idl>
#import <DOM/EventHandler.idl>

[Exposed=(Window,Worker), CustomVisit]
interface AbortSignal : EventTarget {
    // FIXME: [NewObject] static AbortSignal abort(optional any reason);

    readonly attribute boolean aborted;
    readonly attribute any reason;
    undefined throwIfAborted();

    attribute EventHandler onabort;
};