(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.
(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.
(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.
(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.
(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.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close