MCPcopy Index your code
hub / github.com/redis/node-redis / delay

Function delay

examples/transaction-with-watch.js:3–3  ·  view source on GitHub ↗
(ms)

Source from the content-addressed store, hash-verified

1import { createClient, WatchError } from 'redis';
2
3const delay = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
4const client = createClient();
5await client.connect();
6

Callers 1

transactionFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected