Call a function with abort signal and clear the memory.
Some functions do not clear a signal listener after successful execution. By wrapping the original AbortSignal (which may be long-lived) in a temporary AbortSignal that we can throw out when fn completes, we make sure
a function we call does not leave stuff in memory.
Call a function with abort signal and clear the memory.
Some functions do not clear a signal listener after successful execution. By wrapping the original AbortSignal (which may be long-lived) in a temporary AbortSignal that we can throw out when
fn
completes, we make sure a function we call does not leave stuff in memory.