Cancels a scheduled action.
Cancels a scheduled action. It is ok to use an old token that was already completed or cancelled.
Schedules the execution of a function at a given time.
Schedules the execution of a function at a given time. Time is given
as an "absolute" frame in the sense of AuralContext.time
.
Returns a token that can be used to cancel the action.
The token is >= 0
.
Logical time frame based on Timeline.SampleRate
and with zero
corresponding to creation time.
Logical time frame based on Timeline.SampleRate
and with zero
corresponding to creation time. Frames elapsed with wall-clock
but are stable within a transaction.
A
Scheduler
uses a logical frame clock to execute functions transactionally at specific times. It is parametrized inS
in order to perform transactions, but it does not store any state that would need the scheduler to be handled withstm.Source
. It can be safely stored in a regular value.