MCPcopy Index your code
hub / github.com/Effect-TS/effect / adjust

Method adjust

packages/effect/src/TestClock.ts:229–232  ·  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

227 * order.
228 */
229 adjust(durationInput: Duration.DurationInput): Effect.Effect<void> {
230 const duration = Duration.decode(durationInput)
231 return core.zipRight(this.warningDone(), this.run((n) => n + Duration.toMillis(duration)))
232 }
233 /**
234 * Increments the current clock time by the specified duration. Any effects
235 * that were scheduled to occur on or before the new time will be run in

Callers 1

adjustWithMethod · 0.95

Calls 3

warningDoneMethod · 0.95
runMethod · 0.95
decodeMethod · 0.80

Tested by

no test coverage detected