lamina.time documentation
advance-until
fn
[_ timestamp]
Advances across all tasks that occur before or on the given timestamp.
invoke-lazily
fn
[f]
[task-queue f]
Provides a function that will be invoked whenever the task-queue begins processing events.
invoke-repeatedly
fn
[period f]
[task-queue period f]
Repeatedly invokes a function every period
milliseconds, but ensures that the function cannot
overlap its own invocation if it takes more than the period to complete.
The function will be given a single parameter, which is a callback that can be invoked to cancel future invocations.
non-realtime-task-queue
fn
[]
[start-time discard-past-events?]
A task queue which can be used to schedule timed or periodic tasks at something other than realtime.