• (get id)
Returns the mailbox for a given id. Creates one if one does not
already exist.

0 Examples top

Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source swank/util/concurrent/mbox.clj:7 top

(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})
Vars in swank.util.concurrent.mbox/get: alter assoc defn dosync get when-not deref
Used in 0 other vars

Comments top

No comments for get. Log in to add a comment.