Skip to content

Remove use of TimeoutAbortController #1681

@achingbrain

Description

@achingbrain

We use timeout-abort-controller to have auto-aborting AbortSignals after a set timeout.

AbortSignal has a static .timeout method that does the same thing and doesn't cause the node event loop to wait for the timeout, so we no longer need to call .clear on the controller as we do with timeout-abort-controller.

It's supported in all recent browsers and node 17+.

We should remove our usage of timeout-abort-controller and replace it with AbortSignal.timeout.

Metadata

Metadata

Assignees

Labels

P1High: Likely tackled by core team if no one steps updxDeveloper Experienceexp/noviceSomeone with a little familiarity can pick up

Type

No type

Projects

Status

🎉Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions