Thanks Miʃel,
On Feb 23, 10:15 pm, Michel Salim <[email protected]> wrote:
>
> What's the object on which .countDown is called? You need to find
> where it's first declared and give it a type annotation.
>
It's created here:
let [
latch (java.util.concurrent.CountDownLatch. n)
...
Sorry if I'm being dense, but do you mean I should annotate it in the
arguments list of the function where it's used, like so:
(defn unlatching-watcher [#^java.util.concurrent.CountDownLatch latch
cell cell-updated?]
"A watcher function that decrements a latch when a cell updates."
(if cell-updated?
(if (not (:updating @cell))
(.countDown latch))))
or annotate in when it's actually created? If the latter, what's the
syntax for that?
Thanks,
Anand
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Clojure" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---