| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
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>
|
Note the failing tests |
Sorry, something went wrong.
There was a problem hiding this comment.
lgtm
Sorry, something went wrong.
Sorry, something went wrong.
| <!-- | ||
| added: REPLACEME | ||
| --> | ||
|
|
There was a problem hiding this comment.
| > Stability: 1 - Experimental | |
Sorry, something went wrong.
| <!-- | ||
| added: REPLACEME | ||
| --> | ||
|
|
There was a problem hiding this comment.
| > Stability: 1 - Experimental | |
Sorry, something went wrong.
| * }} [init] | ||
| * @returns {AbortSignal} | ||
| */ | ||
| function createAbortSignal(init) { |
There was a problem hiding this comment.
| function createAbortSignal(init) { | |
| function createAbortSignal(init = kEmptyObject) { |
and then requiring kEmptyObject from internal/util will probably fix the test failures. You might also want to rebase to include the change from #43159 for this to work.
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
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
/cc @mcollina @ronag