Liking cljdoc? Tell your friends :D

com.potetm.fusebox.timeout


disableclj

(disable spec)
source

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
sourceraw docstring

shutdownclj

(shutdown spec)
source

timeout*clj

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

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.
sourceraw 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.
sourceraw docstring

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

× close