The options for the cancel signal.
Optional
abortSignal?: AbortSignalAn optional abort signal. If provided, the cancel signal will be cancelled when the abort signal is aborted.
Optional
logger?: LoggerThe logger to use for the cancel signal. If not provided, a console logger will be created with the default settings.
A tuple containing the cancel signal and a function to cancel the signal.
Create a cancel signal.