( f: (testClock: TestClock) => Effect.Effect<A, E, R> )
| 467 | * @since 2.0.0 |
| 468 | */ |
| 469 | export const testClockWith = <A, E, R>( |
| 470 | f: (testClock: TestClock) => Effect.Effect<A, E, R> |
| 471 | ): Effect.Effect<A, E, R> => Effect.withFiber((fiber) => f(fiber.getRef(Clock.Clock) as TestClock)) |
| 472 | |
| 473 | /** |
| 474 | * Accesses a `TestClock` instance in the context and increments the time |