If a XState timer is cancelled before Temporal's underlying sleep has expired, the sleep call is not cancelled and will interfere with the state machine in bad ways.
As I show in a repository, implementing clearTimeout is necessary to have an interpreter that properly works with timers.
If a XState timer is cancelled before Temporal's underlying
sleep
has expired, thesleep
call is not cancelled and will interfere with the state machine in bad ways.As I show in a repository, implementing
clearTimeout
is necessary to have an interpreter that properly works with timers.