Clojure

clojure.org/agents calls out deprecated funcs

Details

  • Type: Enhancement Enhancement
  • Status: Closed Closed
  • Priority: Trivial Trivial
  • Resolution: Completed
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None

Description

""If any exceptions are thrown by an action function, no nested dispatches will occur, and the exception will be cached in the Agent itself. When an Agent has errors cached, any subsequent interactions will immediately throw an exception, until the agent's errors are cleared. Agent errors can be examined with agent-errors and cleared with clear-agent-errors.""

While it is true and those functions will do what it describes, they are listed as deprecated in the docs. Should we update this paragraph to reflect usage of `agent-error` and `restart-agent` instead?

Activity

Hide
Ryan Macy added a comment -

I hope I put this in the right place!

Show
Ryan Macy added a comment - I hope I put this in the right place!
Hide
Alex Miller added a comment -

Yep, thanks!

Show
Alex Miller added a comment - Yep, thanks!
Hide
Alex Miller added a comment -

Fixed.

Show
Alex Miller added a comment - Fixed.

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: