1
Fork 0
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:
Luke Wilde 2022-10-26 18:15:46 +01:00 committed by Linus Groh
parent 07e3bb729d
commit dce6327ae7
2 changed files with 25 additions and 0 deletions

View file

@ -38,6 +38,8 @@ public:
JS::ThrowCompletionOr<void> throw_if_aborted() const;
void follow(JS::NonnullGCPtr<AbortSignal> parent_signal);
private:
explicit AbortSignal(JS::Realm&);