Hi all,
I've started writing a little library (Task) for managing tasks at the
REPL: my motivation is that I am doing a lot of analytical work with
relatively long-running tasks and I wanted to be able to fire of
multiple background tasks and then manage / monitor the state of them
interactively. Example usage:
(run {:repeat 5 :pause 1000} (.println (System/out) "bvboug"))
(ps)
====================================================================================
:id | :status | :source
| :options | :result
====================================================================================
4 | :complete | (do (println "Hello task!")) | {:repeat 5, :sleep
1000} |
3 | :complete | (do (swap! counter inc)) | {:repeat 5, :pause
1000} |
2 | :complete | (some-other-function) | {:repeat 5, :pause
10000} |
1 | :complete | (yet-another-function) | {:repeat 5, :pause
1000} |
====================================================================================
Task is available here on github:
https://github.com/mikera/task
It's still work-in-progress but I thought I'd share it early in case
it is useful for people or if the community has any good ideas on how
to improve it. I'm planning to develop this to the point where it is
broadly useful for everyone with a similar need.
Comments / suggestion / feature requests very welcome!
Mike.
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en