(label: string)
| 2689 | const timestamps: number[] = []; |
| 2690 | const recordTime = |
| 2691 | <T>(label: string) => |
| 2692 | <E extends Effect>(self: Effected<E, T>): Effected<E, T> => |
| 2693 | self.tap(() => { |
| 2694 | timestamps.push(Date.now()); |
| 2695 | logs.push(`${label} at ${Date.now()}ms`); |
| 2696 | }); |
| 2697 | |
| 2698 | const program = Effected.of(10); |
| 2699 | const result = program.pipe( |