Utilities to delay updates after a set period of time
Starts a sequence of delayed messages
sequence
[ ( 1000, millisecond, FirstMessage )
, ( 2000, millisecond, SecondMessage )
, ( 1000, millisecond, ThirdMessage )
]Starts a sequence of delayed messages if predicate is met
sequenceIf (not model.updating)
[ ( 1000, millisecond, FirstMessage )
, ( 2000, millisecond, SecondMessage )
, ( 1000, millisecond, ThirdMessage )
]Helper for making all steps have the same unit
withUnit millisecond
[ ( 1000, FirstMessage )
, ( 2000, SecondMessage )
, ( 1000, ThirdMessage )
]
|> sequence
Delays an update (with a message) by a given amount of time