MCPcopy
hub / github.com/mongodb/node-mongodb-native / delay

Function delay

test/integration/shared.js:33–39  ·  view source on GitHub ↗
(timeout)

Source from the content-addressed store, hash-verified

31};
32
33function delay(timeout) {
34 return new Promise(function (resolve) {
35 setTimeout(function () {
36 resolve();
37 }, timeout);
38 });
39}
40
41function dropCollection(dbObj, collectionName, options = {}) {
42 return dbObj.dropCollection(collectionName, options);

Callers 2

testFunction · 0.90

Calls 1

resolveFunction · 0.50

Tested by 1

testFunction · 0.72