Ensure syn7/31/2023 ![]() ![]() If the promise has already been fulfilled or rejected when a corresponding handler is attached, the handler will be called, so there is no race condition between an asynchronous operation completing and its handlers being attached.Ī promise is said to be settled if it is either fulfilled or rejected, but not pending. When either of these options occur, the associated handlers queued up by a promise's then method are called. The eventual state of a pending promise can either be fulfilled with a value or rejected with a reason (error). rejected: meaning that the operation failed. ![]()
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |