Skip to content

lib: refactor transferable AbortSignal

The use of makeTransferable on all AbortSignal instances made creating them always slow, causing bottlenecks in stuff like Web Streams. This refactors that so that AbortSignals are not transferable by default, which is actually the correct standard behavior anyway. A new transferableAbortSignal and transferableAbortController utility is provided to enable the transferable use case.

Signed-off-by: James M Snell jasnell@gmail.com Fixes: #43160 (closed)

/cc @mcollina @ronag

Merge request reports

Loading