Shared utilities used by both exec.clj and exec-cljs.clj.
Shared utilities used by both exec.clj and exec-cljs.clj.
(emit-edn m)(emit-edn m writer)Prints an EDN map to the given writer (or out), one per line.
Prints an EDN map to the given writer (or *out*), one per line.
(run-with-timeout timeout-ms f on-timeout)Executes f with an optional timeout. If timeout-ms is nil, calls (f) directly. Otherwise runs (f) in a future and derefs with the timeout. On timeout, cancels the future (interrupting the thread) and calls (on-timeout) instead, returning its result.
Executes f with an optional timeout. If timeout-ms is nil, calls (f) directly. Otherwise runs (f) in a future and derefs with the timeout. On timeout, cancels the future (interrupting the thread) and calls (on-timeout) instead, returning its result.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |