Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
1
import
{ createClient, WatchError } from
'redis'
;
2
3
const
delay = (ms) =>
new
Promise((resolve) => setTimeout(resolve, ms));
4
const
client = createClient();
5
await
client.connect();
6
Callers
1
transaction
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected