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:690 top

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

Comments top

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