Node.js · Middle · Question 26 of 75

What is AbortController used for in Node.js?

Explanation

Many Node.js APIs accept { signal }. AbortSignal.timeout(5000) creates a signal that aborts after 5 seconds, which is a simple way to add timeouts.

Further reading

Problem with a question

Node.js · Middle · question 26

Test yourself

Take the Node.js · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz