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

Function wait

media/transcoder/test/transcoder.test.js:91–97  ·  view source on GitHub ↗
(ms)

Source from the content-addressed store, hash-verified

89};
90
91function wait(ms) {
92 return new Promise(resolve => {
93 setTimeout(() => {
94 return resolve();
95 }, ms);
96 });
97}
98
99const checkFileExists = async function (bucketName, fileName) {
100 const [files] = await storage.bucket(bucketName).getFiles();

Callers 1

transcoder.test.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected