MCPcopy Create free account
hub / github.com/bewcloud/bewcloud / wait

Function wait

lib/interfaces/locker.ts:3–5  ·  view source on GitHub ↗
(milliseconds = 100)

Source from the content-addressed store, hash-verified

1// This is a simple, in-memory lock, which works well enough if you're serving from a single source/server
2
3function wait(milliseconds = 100) {
4 return new Promise((resolve) => setTimeout(() => resolve(true), milliseconds));
5}
6
7const expirationInMilliseconds = 15_000;
8

Callers 1

acquireMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected