settled(promise)


    当 promise 收到解决或拒绝值时调用。 这可能在 Promise.resolve()Promise.reject() 的情况下同步地发生。

    Called when the promise receives a resolution or rejection value. This may occur synchronously in the case of Promise.resolve() or Promise.reject().