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

Function onEvent

packages/effect/test/ExecutionPlan.test.ts:205–208  ·  view source on GitHub ↗
(event: ExecutionPlan.Event<unknown>)

Source from the content-addressed store, hash-verified

203 const makeCollector = () => {
204 const events = Array.empty<ExecutionPlan.Event<unknown>>()
205 const onEvent = (event: ExecutionPlan.Event<unknown>) =>
206 Effect.sync(() => {
207 events.push(event)
208 })
209 return { events, onEvent }
210 }
211

Callers 1

emitFunction · 0.50

Calls 2

pushMethod · 0.80
syncMethod · 0.45

Tested by

no test coverage detected