clojure/core.async — pull request #5 by aredington (2013-06-21 15:07:36+00:00)
Title: Add thread-call fn and thread macro

Notes:

- Added thread-call to keep the executor scope private to core.async namespace, mirroring the structure of (future

) and (future-call )
- put! with a closing callback to return the executing thread to the pool as soon as the body completes, rather than waiting for the caller to pick up the value (as we'd have to with >!!)
- If the fn in question has an uncaught throw, we don't communicate that to callers at all. Clients are always able to do their own communication of error conditions if they catch. Would it make sense to have a construct similar to (agent-error) like (thread-error ) which would convey an uncaught exception if one is encountered?