MCPcopy Create free account
hub / github.com/parse-community/parse-server / wait

Function wait

spec/InMemoryCache.spec.js:15–19  ·  view source on GitHub ↗
(sleep)

Source from the content-addressed store, hash-verified

13 const VALUE = 'world';
14
15 function wait(sleep) {
16 return new Promise(function (resolve) {
17 setTimeout(resolve, sleep);
18 });
19 }
20
21 it('should destroy a expire items in the cache', done => {
22 const cache = new InMemoryCache(BASE_TTL);

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…