(commandDone: Ref.Ref<boolean>, queryDone: Ref.Ref<boolean>)
| 21 | ) |
| 22 | |
| 23 | const makeImplLayer = (commandDone: Ref.Ref<boolean>, queryDone: Ref.Ref<boolean>) => |
| 24 | InterruptibilityRpcs.toLayer({ |
| 25 | doCommand: () => |
| 26 | applyRequestTypeInterruptibility( |
| 27 | "command", |
| 28 | Effect.sleep("120 millis").pipe(Effect.andThen(Ref.set(commandDone, true))) |
| 29 | ), |
| 30 | doQuery: () => |
| 31 | applyRequestTypeInterruptibility( |
| 32 | "query", |
| 33 | Effect.sleep("120 millis").pipe(Effect.andThen(Ref.set(queryDone, true))) |
| 34 | ) |
| 35 | }) |
| 36 | |
| 37 | describe("routing interruptibility", () => { |
| 38 | it.live( |
no test coverage detected
searching dependent graphs…