Belay.Clock behaviour (Belay v1.0.0-rc.6)

Copy Markdown View Source

Injectable time source. Everything time-dependent in the engine (backoff, lease expiry, rate windows, await deadlines, cron slots) reads through this, so tests advance a Belay.Clock.Sim instead of sleeping.

Summary

Callbacks

now(term)

@callback now(term()) :: DateTime.t()

Functions

now(mod)