Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/brianc/node-postgres
/ wait
Function
wait
packages/pg-pool/test/idle-timeout.js:12–12 ·
view source on GitHub ↗
(time)
Source
from the content-addressed store, hash-verified
10
const
Pool = require(
'../'
)
11
12
const
wait = (time) =>
new
Promise((resolve) => setTimeout(resolve, time))
13
14
describe(
'idle timeout'
, () => {
15
it(
'should timeout and remove the client'
, (done) => {
Callers
1
idle-timeout.js
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected