(rontolisp) docs
← State

restart-agent

(restart-agent a v & options)

Restarts a failed agent: v, which its validator must accept, becomes its value, its error is cleared and the actions queued behind the failure run, or are dropped with :clear-actions true. Answers v; an agent that has not failed is refused (Agent does not need a restart). The deprecated (clear-agent-errors a) restarts it over its own value. Works as a function value.

Agent is failed, needs restart
10
11 nil