mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 10:37:45 +00:00
LibWeb: Add the ability for an AbortSignal to follow another
Following another abort signal basically means to make an abort signal abort when another abort signal is aborted, unless the following signal is already aborted.
This commit is contained in:
parent
07e3bb729d
commit
dce6327ae7
2 changed files with 25 additions and 0 deletions
|
@ -38,6 +38,8 @@ public:
|
|||
|
||||
JS::ThrowCompletionOr<void> throw_if_aborted() const;
|
||||
|
||||
void follow(JS::NonnullGCPtr<AbortSignal> parent_signal);
|
||||
|
||||
private:
|
||||
explicit AbortSignal(JS::Realm&);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue