(label: string)
| 1028 | Effect.gen(function*() { |
| 1029 | const interrupted: Array<string> = [] |
| 1030 | const onInterrupt = (label: string) => |
| 1031 | Effect.onInterrupt(() => |
| 1032 | Effect.sync(() => { |
| 1033 | interrupted.push(label) |
| 1034 | }) |
| 1035 | ) |
| 1036 | const fiber = yield* Effect.race( |
| 1037 | Effect.succeed("fast").pipe(Effect.delay(100), onInterrupt("fast")), |
| 1038 | Effect.succeed("slow").pipe(Effect.delay(500), onInterrupt("slow")) |
no test coverage detected