Wait some number of milliseconds before continuing.
This returns a promise that resolves when at least 1 VM turn has passed- this means that wait cannot wait for any shorter than ~1-4ms depending on browser.
Like wait, except it will wait for the next frame paint before resolving.
Wait until a predicate returns true.
Like wait
, this returns a promise that resolves when at least 1 VM turn
has passed. This promise is rejected if the timeout is reached before the
predicate becomes true. By default, the predicate is run every 25ms, but is
configurable.
For user actions, use a timeout of ~300ms to prevent studder
Generated using TypeDoc
A set of utilities for working with asynchronous things.