Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumNodeJSAbortController cancellationSingle-choice MCQ

You call controller.abort('rate-limited') with a custom reason. What does signal.throwIfAborted() throw?

const ac = new AbortController(); ac.abort('rate-limited'); ac.signal.throwIfAborted();