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

delay?

clojure.core

  • (delay? x)
returns true if x is a Delay created with delay

1 Example top

  • user=> (def v (delay (do (println "start sleeping") 
                             (Thread/sleep 1000) 
                             10)))
    #'user/v
    user=> (delay? v)
    true
    user=> (force v)
    start sleeping
    10
    user=> (delay? v)
    true
    user=> (force v)
    10
    user=> 
Log in to add / edit an example.

See Also top

  • 0
    clojure.core/delay

    Takes a body of expressions and yields a Delay object that will inv

Log in to add a see also.

Plus_12x12 Minus_12x12 Source clojure/core.clj:628 top

(defn delay?
  "returns true if x is a Delay created with delay"
  {:added "1.0"}
  [x] (instance? clojure.lang.Delay x))
Vars in clojure.core/delay?: defn instance?
Used in 0 other vars

Comments top

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