stop

abstract fun stop()

Stops the state machine.

After stopping, the machine will no longer process events or notify observers. The current state is preserved and the machine can be restarted later.

This method is thread-safe and can be called from any thread, including coroutine contexts.