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

Method setTime

packages/effect/src/testing/TestClock.ts:105–105  ·  view source on GitHub ↗

* Sets the current clock time to the specified `timestamp`. Any effects that * were scheduled to occur on or before the new time will be run in order.

(timestamp: number)

Source from the content-addressed store, hash-verified

103 * were scheduled to occur on or before the new time will be run in order.
104 */
105 setTime(timestamp: number): Effect.Effect<void>
106 /**
107 * Executes the specified effect with the live `Clock` instead of the
108 * `TestClock`.

Callers 13

NodeCrypto.test.tsFile · 0.80
Metric.test.tsFile · 0.80
TestClock.test.tsFile · 0.80
DateTime.test.tsFile · 0.80
Effect.test.tsFile · 0.80
Crypto.test.tsFile · 0.80
Sink.test.tsFile · 0.80
Cache.test.tsFile · 0.80
Schedule.test.tsFile · 0.80
stepCronFunction · 0.80
dateTime.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected