I am writing a utility in Scala that includes a “file copy” actor. I send file names to be copied and the actor does them one at a time.
How would I to do the same thing in Clojure using agents?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Why you need to perform this using agents? because you want to copy them asynchronously? But if you still want to do this, you can use something like:
although, maybe it’s better to use futures?