(init {_to :com.potetm.fusebox.timeout/timeout-ms :as spec})
Initialize a Timeout.
spec is a map containing: ::timeout-ms - millis to wait before timing out ::interrupt? - bool indicated whether a timed-out thread should be interrupted on timeout
Initialize a Timeout. spec is a map containing: ::timeout-ms - millis to wait before timing out ::interrupt? - bool indicated whether a timed-out thread should be interrupted on timeout
(timeout* {to :com.potetm.fusebox.timeout/timeout-ms
intr? :com.potetm.fusebox.timeout/interrupt?}
f)
(try-interruptible & body)
Same as clojure.core/try, but guarantees an InterruptedException will be rethrown and never swallowed.
This should be preferred to clojure.core/try for calls to with-timeout.
Same as clojure.core/try, but guarantees an InterruptedException will be rethrown and never swallowed. This should be preferred to clojure.core/try for calls to with-timeout.
(with-timeout spec & body)
Evaluates body, throwing ExceptionInfo if lasting longer than specified.
spec is the return value of init.
Evaluates body, throwing ExceptionInfo if lasting longer than specified. spec is the return value of init.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close