When the promise is settled, whether fulfilled or rejected, the specified callback function is executed.