(break-with-window* locals)
Invoke this to drop into a new sub-repl, which can return into the parent repl at any time. Must supply locals, that will be in scope in the new subrepl.
Invoke this to drop into a new sub-repl, which can return into the parent repl at any time. Must supply locals, that will be in scope in the new subrepl.
(eval-supervisor ns)
(eval-supervisor state locals)
Creates an eval supervisor thread that will create and drive an eval-worker. If the worker becomes unresponsive, the supervisor allows meta-control of the worker (stop, threadump, wait).
Returns the supervisor id, which allows it to be controlled in the repl.
Creates an eval supervisor thread that will create and drive an eval-worker. If the worker becomes unresponsive, the supervisor allows meta-control of the worker (stop, threadump, wait). Returns the supervisor id, which allows it to be controlled in the repl.
(eval-with-locals locals form)
Evals a form with given locals. The locals should be a map of symbols to values.
Evals a form with given locals. The locals should be a map of symbols to values.
(eval-with-state-and-locals form state locals)
Evaluates a form with a given state and local binding. The local binding
is the return value of using the local-bindings
macro at the place
you wish to capture the locals. State is a map containing the
repl state, which has the following keys: :*1
, :*2
, :*3
, :*e
,
and :ns
. It will return the updated state, along with the extra keys
:out
, :err
, and :result
, which will be bound to all the stdout and
stderr of the evaluated form, and it's value. The value will also be
included pprint
ed in stdout for display convenience.
Evaluates a form with a given state and local binding. The local binding is the return value of using the `local-bindings` macro at the place you wish to capture the locals. State is a map containing the repl state, which has the following keys: `:*1`, `:*2`, `:*3`, `:*e`, and `:ns`. It will return the updated state, along with the extra keys `:out`, `:err`, and `:result`, which will be bound to all the stdout and stderr of the evaluated form, and it's value. The value will also be included `pprint`ed in stdout for display convenience.
(eval-worker ns)
(eval-worker state locals)
Creates an eval worker thread that can transfer its IO control
down the stack. Returns [in out thread]
, where in
and out
are the channels to send and recieve messages, and thread
is
a promise containing the actual worked Thread, for debugging.
Creates an eval worker thread that can transfer its IO control down the stack. Returns `[in out thread]`, where `in` and `out` are the channels to send and recieve messages, and `thread` is a promise containing the actual worked Thread, for debugging.
(late-bound-repl-loop state locals)
This creates a repl loop with the given initial state and, optionally,
locals. This is late-bound because it uses repl-input and repl-output,
call deref
such that it is possible for an evaluated form to recursively
create another late-bound-repl-loop.
This creates a repl loop with the given initial state and, optionally, locals. This is late-bound because it uses repl-input and repl-output, call `deref` such that it is possible for an evaluated form to recursively create another late-bound-repl-loop.
DEPRPECATED; set print-fn
directly.
This var determines whether repl results are println
ed or pprint
ed.
DEPRPECATED; set `print-fn` directly. This var determines whether repl results are `println`ed or `pprint`ed.
Allows you to configure what function is used to print the result of computations. This function should take one argument, the expression's value.
Allows you to configure what function is used to print the result of computations. This function should take one argument, the expression's value.
(repl-eval-form repl form)
Takes a repl id and a form, and evaluates that form on the given repl.
Takes a repl id and a form, and evaluates that form on the given repl.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close