Skip to content

Glossary: JavaScript in the Browser

AbortSignal.timeout

Also written: TimeoutError

Makes a signal that cancels a request after a set number of milliseconds. A fetch given this signal rejects with a TimeoutError if the server is too slow.

Where the book teaches it

Related terms

AbortControllerfetch