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

Function handle

packages/experimental/src/EventLog.ts:209–226  ·  view source on GitHub ↗
(
    this: Handlers<any, any>,
    tag: Tag,
    handler: (payload: any) => Effect.Effect<any, R1>
  )

Source from the content-addressed store, hash-verified

207 _Endpoints: identity
208 },
209 handle<Tag extends string, R1>(
210 this: Handlers<any, any>,
211 tag: Tag,
212 handler: (payload: any) => Effect.Effect<any, R1>
213 ): Handlers<any, any> {
214 return makeHandlers({
215 group: this.group,
216 context: this.context,
217 handlers: {
218 ...this.handlers,
219 [tag]: {
220 event: this.group.events[tag],
221 context: this.context,
222 handler
223 }
224 }
225 })
226 },
227 pipe() {
228 return pipeArguments(this, arguments)
229 }

Callers 1

Server.tsFile · 0.50

Calls 1

makeHandlersFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…