Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (defn scheduler-stop [executor]
- (.shutdown executor))
- (defn scheduler-stop-now [executor]
- (.shutdownNow executor))
- (defn scheduler-once-create
- [f d]
- (let [executor (Executors/newSingleThreadScheduledExecutor)]
- (.schedule executor f d TimeUnit/MILLISECONDS)
- executor))
Advertisement
Add Comment
Please, Sign In to add comment