MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / delayed

Function delayed

javascript/selenium-webdriver/lib/promise.js:33–35  ·  view source on GitHub ↗

* Creates a promise that will be resolved at a set time in the future. * @param {number} ms The amount of time, in milliseconds, to wait before * resolving the promise. * @return {!Promise } The promise.

(ms)

Source from the content-addressed store, hash-verified

31 * @return {!Promise<void>} The promise.
32 */
33function delayed(ms) {
34 return new Promise((resolve) => setTimeout(resolve, ms))
35}
36
37/**
38 * Wraps a function that expects a node-style callback as its final

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected