© 2026 Hedgehog Software, LLC
RpcClient.layerProtocolWorker
MyRpcClient
someLibraryMethod
const someLibraryMethod = () => Effect.gen(function*() { const sameClientInstanceBetweenCalls = yield* MyRpcClient yield* sameClientInstanceBetweenCalls.someMethod() }).pipe(Effect.runPromise)
Atom.keepAlive
@effect-atom/atom-react
const MyRpcClientAlive = MyRpcClient.pipe(Effect.keepAlive) // use as normal, but now it's persisted between Effect executions yield* MyRpcClientAlive