MCPcopy Index your code
hub / github.com/Effect-TS/effect / makeClient

Function makeClient

packages/cluster/src/Sharding.ts:1159–1163  ·  view source on GitHub ↗
(entity: Entity<Type, Rpcs>)

Source from the content-addressed store, hash-verified

1157 }))
1158
1159 const makeClient = <Type extends string, Rpcs extends Rpc.Any>(entity: Entity<Type, Rpcs>): Effect.Effect<
1160 (
1161 entityId: string
1162 ) => RpcClient.RpcClient.From<Rpcs, MailboxFull | AlreadyProcessingMessage>
1163 > => clients.get(entity) as any
1164
1165 const clientRespondDiscard = (_reply: Reply.Reply<any>) => Effect.void
1166

Callers 3

makeFunction · 0.70
Entity.test.tsFile · 0.50
Sharding.test.tsFile · 0.50

Calls 1

getMethod · 0.65

Tested by

no test coverage detected