promise
.then((result) => { ··· })
.catch((error) => { ··· })
.finally(() => {
/\*logic independent of success/error \*/
})
The handler is called when the promise is fulfilled or rejected
Comments
promise
.then((result) => { ··· })
.catch((error) => { ··· })
.finally(() => {
/\*logic independent of success/error \*/
})
The handler is called when the promise is fulfilled or rejected