Liking cljdoc? Tell your friends :D

com.potetm.fusebox.timeout


disableclj

(disable spec)

initclj

(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
raw docstring

shutdownclj

(shutdown spec)

timeout*clj

(timeout* {to :com.potetm.fusebox.timeout/timeout-ms
           intr? :com.potetm.fusebox.timeout/interrupt?
           :as spec}
          f)

try-interruptiblecljmacro

(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.
raw docstring

with-timeoutcljmacro

(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.
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close