Time Module
Effects for reading the time, and waiting, through an ITimeProvider.
Functions and values
| Function or value |
Description
|
|
An effect that waits for delay on the environment's clock, so that a fake clock in tests
decides when it ends. When the environment is also an ICancellationProvider, cancelling
its source ends the wait early, with a TaskCanceledException. Not on
Fable, where an environment can't be tested for an interface it may implement: there the wait is the clock's
Example
val poll: unit -> 'a
|
Full Usage:
utcNow ()
Parameters:
unit
Returns: Effect<'a, DateTimeOffset, 'b>
Type parameters: 'a, 'b (requires :> Orsak.ITimeProvider) |
An effect that reads the current UTC time from the environment's clock.
Example
val isExpired: expires: 'a -> 'b
val expires: 'a
|
Orsak