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

Function handler

packages/effect/src/unstable/cluster/Entity.ts:342–346  ·  view source on GitHub ↗
(envelope: any)

Source from the content-addressed store, hash-verified

340
341 // create the rpc handlers for the entity
342 const handler = (envelope: any) =>
343 Effect.callback<any, any>((resume) => {
344 Queue.offerUnsafe(queue, envelope)
345 resumes.set(envelope, resume)
346 })
347 const streamHandler = (envelope: any) =>
348 Effect.callback<any, any>((resume) => {
349 Queue.offerUnsafe(queue, envelope)

Callers

nothing calls this directly

Calls 2

offerUnsafeMethod · 0.80
setMethod · 0.65

Tested by

no test coverage detected