chime

A really lightweight Clojure scheduler

Downloads
1.3M
Stars
539
Committers
14

Bot releases are visible (Hide)

chime - 0.3.3 Latest Release

Published by jarohen over 3 years ago

Bugs fixed in 0.3.3:

  • #43: Passing thread-bindings through to scheduled task
  • #41: Allow user to override the thread-factory used by Chime, makes Chime Loom-friendly (thanks @jimpil)
  • Allow specifying 'clock' to chime-at (thanks @jimpil)
  • #36: ensure we only call on-finished once (thanks @dazld)
  • #33: include thread-count in thread name (thanks @orestis and @pmonks)
  • #34: add IPending implementation to return value of chime-at (thanks @nukep)
  • fixed without-past-times to work with joda date-times
chime -

Published by jarohen over 4 years ago

Have finally gotten around to spending some non-trivial time modernising Chime, thanks for your patience 😄

This is a backwards compatible release - the original chime namespace still behaves 100% as before.

The plan now is to move to a 1.0.0 release imminently (in line with the rest of the Clojure community, apparently!) in which I'll remove this layer - so feel free to use this release to migrate over.

Changes:

  • Main chime namespace is now chime.core, rather than the chime top-level namespace
  • core.async is no longer a required dependency - chime-ch is in chime.core-async/chime-ch
  • chime-at now returns an AutoCloseable rather than a close function - call .close to stop the schedule.
  • Chime no longer removes past times for you - this was causing counter-intuitive issues.
    I've added chime.core/without-past-times if you want to restore this behaviour.
  • Error handling has changed slightly - you now need to return truthy to continue the schedule, falsy to stop it.

The implementations in the chime namespace are now in terms of the new functions, so I'd recommend looking at them for how to migrate.

Just to confirm, these changes only apply to chime.core / chime.core-async - the behaviour of the chime namespace hasn't changed.

As always, appreciative of any feedback - cheers!

James

chime -

Published by jarohen over 4 years ago

left some println debugging in this release, sorry. see 0.3.2.