catch(onRejected?: (reason?: any)): IPromise
Promiseが拒否された後に関数を呼び出します。
The function which will be executed when a promise is rejected. This has a single parameter, the rejection reason. The return value will be passed to the next callback function.
then(onFulfilled?: (value?: any), onRejected?: (reason?: any)): IPromise
Promiseが完了または拒否された後に関数を呼び出します。
The function which will be executed when a promise is fulfilled. This has a single parameter, the fulfillment value. If a value is returned, it will be passed to the next callback function. If no value is returned, the original value will be passed.
The function which will be executed when a promise is rejected. This has a single parameter, the rejection reason. If a value is returned, it will be passed to the next callback function. If no value is returned, the original value will be passed.
非同期呼び出しに使用されるPromiseのインタフェースを定義します。