Beto de Castro Moreira

22%
Flag icon
In very simple terms, promises are an abstraction that allow an asynchronous function to return an object called a promise, which represents the eventual result of the operation. In the promises jargon, we say that a promise is pending when the asynchronous operation is not yet complete, it's fulfilled when the operation successfully completes, and rejected when the operation terminates with an error. Once a promise is either fulfilled or rejected, it's considered settled.
Node.js Design Patterns: Master a series of patterns and techniques to create modular, scalable, and efficient applications
Rate this book
Clear rating
Open Preview