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

Function notifyLocal

packages/cluster/src/Runners.ts:361–380  ·  view source on GitHub ↗
(options)

Source from the content-addressed store, hash-verified

359 })
360 },
361 notifyLocal(options) {
362 return notifyWith(options.message, (message, duplicate) => {
363 if (options.discard || message._tag === "OutgoingEnvelope") {
364 return Effect.catchTag(
365 options.notify(Message.incomingLocalFromOutgoing(message)),
366 "EntityNotAssignedToRunner",
367 () => Effect.void
368 )
369 } else if (!duplicate && options.storageOnly !== true) {
370 return options.notify(Message.incomingLocalFromOutgoing(message)).pipe(
371 Effect.andThen(storage.registerReplyHandler(message)),
372 Effect.catchTag("EntityNotAssignedToRunner", () => replyFromStorage(message))
373 )
374 }
375 return options.notify(Message.incomingLocalFromOutgoing(message)).pipe(
376 Effect.catchTag("EntityNotAssignedToRunner", () => Effect.void),
377 Effect.andThen(replyFromStorage(message))
378 )
379 })
380 }
381 })
382})
383

Callers

nothing calls this directly

Calls 2

notifyWithFunction · 0.85
pipeMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…