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

Function delay

compute/test/suspendResume.test.js:34–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32 const zone = 'europe-central2-b';
33
34 const delay = ms => new Promise(res => setTimeout(res, ms));
35
36 const getInstance = async (projectId, zone, instanceName) => {
37 const [instance] = await instancesClient.get({

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected