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

Function sleep

spanner/system-test/spanner.test.js:1702–1704  ·  view source on GitHub ↗
(timeMillis)

Source from the content-addressed store, hash-verified

1700 // delete_backup
1701 it('should delete a backup', async () => {
1702 function sleep(timeMillis) {
1703 return new Promise(resolve => setTimeout(resolve, timeMillis));
1704 }
1705
1706 // Wait for database to finish optimizing - cannot delete a backup if a database restored from it
1707 const instance = spanner.instance(INSTANCE_ID);

Callers 1

spanner.test.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected