Crank.StoppedError exception (Crank v0.2.0)

Copy Markdown View Source

Raised when Crank.crank/2 or Crank.crank!/2 receives a machine that has already stopped.

A machine stops when a handle/3 clause returns {:stop, reason, data}. After that, no more events can be processed. Attempting to crank a stopped machine raises this error with the module, current state, attempted event, and stop reason.