Effect Temporalpub

Source
:effect(pub) Temporal
  .now ( → AnyInt )
  .sleep ( AnyInt → )
Description

Wall-clock and sleep effect. Host-provided implementations may use either monotonic or system time.

Parent chain:IO → Temporal

Operations

.now ( → AnyInt )

Returns the current timestamp as an integer (host-defined epoch and unit).

.sleep ( AnyInt → )

Sleeps the current fibre for the given number of units.