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

Function notify

packages/cluster/src/Runners.ts:342–360  ·  view source on GitHub ↗
(options_)

Source from the content-addressed store, hash-verified

340 )
341 },
342 notify(options_) {
343 const { discard, message } = options_
344 return notifyWith(message, (message, duplicate) => {
345 if (discard || message._tag === "OutgoingEnvelope") {
346 return options.notify(options_)
347 } else if (!duplicate && options_.address._tag === "Some") {
348 return Effect.catchAll(
349 options.send({
350 address: options_.address.value,
351 message
352 }),
353 (_) => replyFromStorage(message)
354 )
355 }
356 return options.notify(options_).pipe(
357 Effect.andThen(replyFromStorage(message))
358 )
359 })
360 },
361 notifyLocal(options) {
362 return notifyWith(options.message, (message, duplicate) => {
363 if (options.discard || message._tag === "OutgoingEnvelope") {

Callers 1

notifyLocalFunction · 0.85

Calls 3

notifyWithFunction · 0.85
pipeMethod · 0.65
getMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…