Returns the mailbox for a given id. Creates one if one does not
already exist.
(defn get
"Returns the mailbox for a given id. Creates one if one does not
already exist."
([id]
(dosync
(when-not (@*mailboxes* id)
(alter *mailboxes* assoc
id (java.util.concurrent.LinkedBlockingQueue.))))
(@*mailboxes* id))
{:tag java.util.concurrent.LinkedBlockingQueue})
Comments top
No comments for get. Log in to add a comment.