(options)
| 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 |
nothing calls this directly
no test coverage detected
searching dependent graphs…