Postpone.Mock (Postpone v0.1.0) View Source

Link to this section Summary

Link to this section Functions

Specs

advance_timers_by(number()) :: :ok

Returns a specification to start this module under a supervisor.

See Supervisor.

Specs

run_all_timers() :: :ok
Link to this function

set_timer_with_ref(time, fun)

View Source

Specs

set_timer_with_ref(non_neg_integer(), (... -> any())) :: {:ok, reference()}
Link to this macro

with_timers_mock(list)

View Source (macro)