/** * Executes the specified workflow with the specified implementation of the * clock service. * * @tsplus static effect/core/io/Effect.Ops withClock */ export function withClock(clock: C) { return (effect: Effect): Effect => DefaultServices.currentServices.locallyWith( (env) => env.add(Clock.Tag, clock) )(effect) }