(options_)
| 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") { |
no test coverage detected
searching dependent graphs…