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
For compatibility with setTimeout both in browsers and in Node and with other promises library like Q and the Deferred object in the jQuery library I propose:
Promise.delay(someValue);
To work with numbers that are not integers the same way browsers, other libraries and node would.
Apply the ToNumber() abstract operation to timeout, and let timeout be the result. [ECMA262]
If timeout is an Infinity value, a Not-a-Number (NaN) value, or negative, let timeout be zero.
For compatibility with
setTimeout
both in browsers and in Node and with other promises library likeQ
and theDeferred
object in the jQuery library I propose:To work with numbers that are not integers the same way browsers, other libraries and node would.
This would require changing:
To
For maintaining type safety but making interop with code that does
delay(100*Math.random())
for example easier.The text was updated successfully, but these errors were encountered: