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
Brian Cavalier edited this page Jul 21, 2014
·
2 revisions
It can be very useful to use promise.timeout(millis) to ensure that promise consumers don't wait an unreasonable amount of time for a task. Sometimes, though, instead of rejecting the returned promise, it can be useful for the producer to return some default value when the promise times out.