Skip to content

clojure.core/send

View this page on ClojureDocs

Type: function Added: Clojure 1.0 Examples: 2 Runnable: 0
([a f & args])

Dispatch an action to an agent. Returns the agent immediately. Subsequently, in a thread from a thread pool, the state of the agent will be set to the value of:

(apply action-fn state-of-agent args)

Examples

by gstamp on . May have evaluation errors.
by elect000 on . May have evaluation errors.

Note by fordsfords

See "send-off" for the differences between "send" and "send-off".

See also


Content from the matching ClojureDocs page, with authors credited on each contribution.