Liking cljdoc? Tell your friends :D

com.potetm.fusebox.timeout


binding-conveyor-fnclj

(binding-conveyor-fn f)
source

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?}
          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 builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close