(client: NodeRedisClient, abort?: AbortController)
| 67 | // Destroying first leaves the abort only an untracked, still-connecting socket |
| 68 | // to close, so it raises no client error. |
| 69 | const destroy = (client: NodeRedisClient, abort?: AbortController) => { |
| 70 | try { |
| 71 | client.destroy() |
| 72 | } catch { |
| 73 | // node-redis before 6.3 throws when destroying a client whose connection |
| 74 | // has failed. |
| 75 | } |
| 76 | abort?.abort() |
| 77 | } |
| 78 | |
| 79 | const make = Effect.fnUntraced(function*( |
| 80 | { acquireTimeout, idleTimeout, maxConnections, minConnections, ...options }: NodeRedisOptions = {} |
no test coverage detected