NestJS · Middle · Question 8 of 75

How can an interceptor add a timeout to slow handlers?

Explanation

This stops waiting for the result, but the underlying work keeps running unless you also cancel it (for example with an AbortSignal).

Further reading

Problem with a question

NestJS · Middle · question 8

Test yourself

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

Take this quiz