1.2.0 permalink Arrow_down_16x16
  • (with-timeout [timed-out? time-limit-in-msec] & body)
Create a thunk that returns true if given time-limit-in-msec has been
elapsed and bind it to timed-out?. Then execute body.

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/commands/contrib/swank_fuzzy.clj:131 top

(defmacro with-timeout
  "Create a thunk that returns true if given time-limit-in-msec has been
  elapsed and bind it to timed-out?. Then execute body."
  #^{:private true}
  [[timed-out? time-limit-in-msec] & body]
  `(call-with-timeout ~time-limit-in-msec (fn [~timed-out?] ~@body)))
Vars in swank.commands.contrib.swank-fuzzy/with-timeout: defmacro apply concat fn list seq vector
Used in 0 other vars

Comments top

No comments for with-timeout. Log in to add a comment.