Writing A Timer In Clojure
What I learned from this experience.
https://github.com/beppu/timer Recently, I’ve been working on a desktop application that let’s you manage multiple timers. It’s at the point where it’s ugly but it works, so I’m going to share what I’ve learned so far. Using core.async For Timing And Control In this application, I have two kinds of entities: Timer - This holds a duration and an amount of time that has elapsed. Alarm - This is responsible for providing some kind of effect (like making a sound) when a Timer has finished.