Commit 31f7e84
Make AbortSignal abort and timeout correctly static, add AbortSignal.any (#55371)
Summary:
Pull Request resolved: #55371
`AbortSignal` `abort` and `timeout` are incorrectly typed as instance methods - they should be static methods.
Also add the static `any()`, which returns a signal composed of other signals.
MDN:
- [`AbortSignal.any(signals: Iterable<AbortSignal>)`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal/any_static)
- [`AbortSignal.abort(reason?: any)`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal/abort_static)
- [`AbortSignal.timeout(time: number)`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal/timeout_static)
Changelog: [Internal]
Reviewed By: panagosg7
Differential Revision: D91904485
fbshipit-source-id: 0850c731cfaf1bf967582c85427acbd6bebcb5aa1 parent aa84ed5 commit 31f7e84
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
609 | 609 | | |
610 | 610 | | |
611 | 611 | | |
612 | | - | |
| 612 | + | |
| 613 | + | |
613 | 614 | | |
614 | 615 | | |
615 | 616 | | |
616 | 617 | | |
617 | | - | |
| 618 | + | |
618 | 619 | | |
619 | 620 | | |
620 | 621 | | |
| |||
0 commit comments