timer-wheel v0.3.0 Release Notes
Release Date: 2020-06-18 // almost 5 years ago-
โ Added
- โ Add
with
- โ Add support for GHC 8.8, GHC 8.10
๐ Changed
- ๐ Change type of
spokes
fromNatural
toInt
- Change order of delay and action arguments in
register
,register_
,recurring
, andrecurring_
- Simplify
cancel
to returnTrue
at most once - Throw an error if a negative delay is provided to
register
,register_
,recurring
, orrecurring_
- ๐ Fix underflow bug that affected recurring timers
โ Removed
- โ Remove
create
,destroy
- โ Remove
TimerWheelDied
exception.with
now simply re-throws the exception that the timer wheel thread throws - โ Remove
InvalidTimerWheelConfig
exception.error
is used instead - โ Remove support for GHC < 8.6
- โ Add
Previous changes from v0.2.0
-
โ Added
- โ Add
destroy
function, for reaping the background thread - โ Add
recurring_
function
๐ Changed
- ๐ป If the timer wheel reaper thread crashes, it will propagate the exception to the thread that spawned it
new
may now throwInvalidTimerWheelConfig
- ๐ The cancel action returned by
register
is now memoized, which fixes a bug involving trying to cancel arecurring
timer twice. The second call used to spin forever and peg a CPU - ๐ Use
Config
type for creating a timer wheel - ๐ Change argument order around
- ๐ Rename
new
tocreate
- ๐ Make recurring timers more accurate
- โ Add