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

Function handleRemote

packages/effect/src/unstable/eventlog/EventLog.ts:155–160  ·  view source on GitHub ↗
(handler)

Source from the content-addressed store, hash-verified

153 }
154 ),
155 handleRemote(handler) {
156 remoteHandler = handler
157 return Effect.forEach(remotes, ([id, remote]) => FiberMap.run(remoteFiberMap, id, handler(remote)), {
158 discard: true
159 })
160 },
161 registerReactivity: (keys) =>
162 Effect.sync(() => {
163 for (const [key, value] of Object.entries(keys)) {

Callers

nothing calls this directly

Calls 3

forEachMethod · 0.65
handlerFunction · 0.50
runMethod · 0.45

Tested by

no test coverage detected