Clojure implementation of the sparrow scheduler