MCPcopy Create free account
hub / github.com/Effect-TS/effect / adjustWith

Method adjustWith

packages/effect/src/TestClock.ts:238–242  ·  view source on GitHub ↗

* Increments the current clock time by the specified duration. Any effects * that were scheduled to occur on or before the new time will be run in * order.

(durationInput: Duration.DurationInput)

Source from the content-addressed store, hash-verified

236 * order.
237 */
238 adjustWith(durationInput: Duration.DurationInput) {
239 const duration = Duration.decode(durationInput)
240 return <A, E, R>(effect: Effect.Effect<A, E, R>): Effect.Effect<A, E, R> =>
241 fiberRuntime.zipLeftOptions(effect, this.adjust(duration), { concurrent: true })
242 }
243 /**
244 * Returns a set of all fibers in this test.
245 */

Callers

nothing calls this directly

Calls 2

adjustMethod · 0.95
decodeMethod · 0.80

Tested by

no test coverage detected