Liking cljdoc? Tell your friends :D

eval-soup.core


code->resultsclj/s≠

clj
(code->results forms)
(code->results forms
               {:keys [timeout disable-timeout? disable-security?]
                :or
                  {timeout 4000 disable-timeout? false disable-security? false}
                :as opts})

Returns a vector of the evaluated result of each of the given forms. If any of the forms are strings, it will read them first.

Returns a vector of the evaluated result of each of the given forms.
If any of the forms are strings, it will read them first.
cljs
(code->results forms cb)
(code->results forms
               cb
               {:keys [*current-ns *state custom-load timeout disable-timeout?]
                :or {*current-ns (atom (quote cljs.user))
                     *state *cljs-state
                     custom-load custom-load!
                     timeout 4000
                     disable-timeout? false}
                :as opts})

Evaluates each form, providing the results in a callback. If any of the forms are strings, it will read them first.

Evaluates each form, providing the results in a callback.
If any of the forms are strings, it will read them first.
raw docstring

with-securitycljmacro

(with-security & body)

Convenience macro that wraps the body with wrap-security and then immediately executes it.

Convenience macro that wraps the body with wrap-security
and then immediately executes it.
raw docstring

wrap-securityclj

(wrap-security thunk)

Returns a function that wraps the given function in a sandbox. It uses eval_soup/java.policy to define permissions. By default, it only disallows exiting via System/exit.

Returns a function that wraps the given function in a sandbox.
It uses eval_soup/java.policy to define permissions. By default,
it only disallows exiting via System/exit.
raw docstring

wrap-timeoutclj

(wrap-timeout thunk timeout)

Returns a function that wraps the given function in a timeout checker. The timeout is specified in milliseconds. If the timeout is reached, an exceptino will be thrown.

Returns a function that wraps the given function in a timeout checker.
The timeout is specified in milliseconds. If the timeout is reached,
an exceptino will be thrown.
raw docstring

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

× close