You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be helpful to allow a rejection value to be defined to a Promise.
Perhaps this could be defined as Promise<T, U> where U is the rejection value. Any rejection stuff (e.g. reject, Promise.timeout, Promise.now) could use this value to make Promises more type safe.
The text was updated successfully, but these errors were encountered:
It would be helpful to allow a rejection value to be defined to a Promise.
Perhaps this could be defined as
Promise<T, U>
whereU
is the rejection value. Any rejection stuff (e.g.reject
,Promise.timeout
,Promise.now
) could use this value to make Promises more type safe.The text was updated successfully, but these errors were encountered: