You're viewing version 1.2.0 of future?. The latest stable version of Clojure Core is 1.3.0.
1.2.0 Arrow_down_16x16



  • (future? x)
Returns true if x is a future

1 Example top

  • user=> (def f (future (inc 0)))
    user=> (future? f)
    user=> (future? 1)
Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source clojure/core.clj:5235 top

(defn future?
  "Returns true if x is a future"
  {:added "1.1"}
  [x] (instance? java.util.concurrent.Future x))
Vars in clojure.core/future?: defn instance?
Used in 0 other vars

Comments top

No comments for future?. Log in to add a comment.