Fledex.Scheduler.TimeScale behaviour (Fledex_Scheduler v0.1.0)
View SourceConstrols time in Fledex.Scheduler, often used to speed up test runs, or implement custom timing loops.
Default implementation is Fledex.Scheduler.IdentityTimeScale.
Summary
Callbacks
Must return the current time in the specified timezone.
Must returns a float factor to speed up delays by.
Callbacks
@callback now(Calendar.time_zone()) :: DateTime.t()
Must return the current time in the specified timezone.
@callback speedup() :: number()
Must returns a float factor to speed up delays by.