Agents
17Creates and returns an agent with an initial value of state and zero or more options (in any order): :meta metadata...
functionclojure.core
Returns the exception thrown during an asynchronous action of the agent if the agent is failed. Returns nil if the ag...
functionclojure.core
Blocks the current thread (indefinitely!) until all actions dispatched thus far, from this thread or agent, to the age...
functionclojure.core
Blocks the current thread until all actions dispatched thus far (from this thread or agent) to the agents have occurre...
functionclojure.core
- function
clojure.core
Returns the error-handler of agent a, or nil if there is none. See set-error-handler!
functionclojure.core
Returns the error-mode of agent a. See set-error-mode!
functionclojure.core
Normally, actions sent directly or indirectly during another action are held until the action completes (changes the a...
functionclojure.core
When an agent is failed, changes the agent state to new-state and then un-fails the agent so that sends are allowed ag...
functionclojure.core
Dispatch an action to an agent. Returns the agent immediately. Subsequently, in a thread from a thread pool, the state...
functionclojure.core
Dispatch a potentially blocking action to an agent. Returns the agent immediately. Subsequently, in a separate thread,...
functionclojure.core
Dispatch an action to an agent. Returns the agent immediately. Subsequently, in a thread supplied by executor, the sta...
functionclojure.core
Sets the ExecutorService to be used by send
functionclojure.core
Sets the ExecutorService to be used by send-off
functionclojure.core
Sets the error-handler of agent a to handler-fn. If an action being run by the agent throws an exception or doesn't p...
functionclojure.core
Sets the error-mode of agent a to mode-keyword, which must be either :fail or :continue. If an action being run by th...
functionclojure.core
Initiates a shutdown of the thread pools that back the agent system. Running actions will complete, but no new actions...
functionclojure.core