NestJS · Junior · Question 47 of 75
Why are async methods common in Nest services?
- 1Async methods run on separate threads
- 2Nest requires every method to be async
- ✓Correct answer: Database and HTTP calls are asynchronous; handlers can return promises and Nest waits for them
Explanation
Controllers can return a promise or an Observable, and Nest sends the resolved value.