MCPcopy Create free account
hub / github.com/Effect-TS/effect / use

Function use

packages/platform/node/src/NodeRedis.ts:79–83  ·  view source on GitHub ↗
(f: (client: NodeRedisClient) => Promise<A>)

Source from the content-addressed store, hash-verified

77 })
78
79 const use = <A>(f: (client: NodeRedisClient) => Promise<A>) =>
80 Effect.tryPromise({
81 try: () => f(client),
82 catch: (cause) => new Redis.RedisError({ cause })
83 })
84
85 const redis = yield* Redis.make({
86 send: <A = unknown>(command: string, ...args: ReadonlyArray<string>) =>

Callers

nothing calls this directly

Calls 1

fFunction · 0.50

Tested by

no test coverage detected