MCPcopy Create free account
hub / github.com/GoogleCloudPlatform/nodejs-docs-samples / sleep

Function sleep

workflows/quickstart/index.js:49–53  ·  view source on GitHub ↗

* Sleeps the process N number of milliseconds. * @param {Number} ms The number of milliseconds to sleep.

(ms)

Source from the content-addressed store, hash-verified

47 * @param {Number} ms The number of milliseconds to sleep.
48 */
49 function sleep(ms) {
50 return new Promise(resolve => {
51 setTimeout(resolve, ms);
52 });
53 }
54 const runtimeArgs = searchTerm ? {searchTerm: searchTerm} : {};
55 // [START workflows_api_quickstart_execution]
56 // Execute workflow

Callers 1

executeWorkflowFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected