(f: (testClock: TestClock) => Effect.Effect<A, E, R>)
| 542 | * @since 2.0.0 |
| 543 | */ |
| 544 | export const testClockWith = <A, E, R>(f: (testClock: TestClock) => Effect.Effect<A, E, R>): Effect.Effect<A, E, R> => |
| 545 | core.fiberRefGetWith( |
| 546 | defaultServices.currentServices, |
| 547 | (services) => f(pipe(services, Context.get(clock.clockTag)) as TestClock) |
| 548 | ) |
| 549 | |
| 550 | /** |
| 551 | * Accesses the current time of a `TestClock` instance in the context in |