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

Function eventLogWrite

packages/effect/src/unstable/eventlog/EventLog.ts:929–939  ·  view source on GitHub ↗
(options: {
    readonly schema: EventLogSchema<any>
    readonly event: string
    readonly payload: unknown
  })

Source from the content-addressed store, hash-verified

927 })
928
929 const eventLogWrite = (options: {
930 readonly schema: EventLogSchema<any>
931 readonly event: string
932 readonly payload: unknown
933 }) => {
934 const handler = registry.handlers.get(options.event) as Handlers.Item<any> | undefined
935 if (handler === undefined) {
936 return Effect.die(`Event handler not found for: "${options.event}"`)
937 }
938 return writeHandler(handler, options)
939 }
940
941 yield* registry.handleRemote(runRemote)
942

Callers

nothing calls this directly

Calls 1

getMethod · 0.65

Tested by

no test coverage detected