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

Function handler

packages/cluster/src/Entity.ts:307–312  ·  view source on GitHub ↗
(envelope: any)

Source from the content-addressed store, hash-verified

305
306 // create the rpc handlers for the entity
307 const handler = (envelope: any) => {
308 return Effect.async<any, any>((resume) => {
309 mailbox.unsafeOffer(envelope)
310 resumes.set(envelope, resume)
311 })
312 }
313 const handlers: Record<string, any> = {}
314 for (const rpc of this.protocol.requests.keys()) {
315 handlers[rpc] = handler

Callers 3

Rpc.test.tsFile · 0.50
accessHandlerFunction · 0.50
HttpRunner.test.tsFile · 0.50

Calls 2

unsafeOfferMethod · 0.65
setMethod · 0.65

Tested by

no test coverage detected