Method decorator that marks a method as a state exit handler. The decorated method will be called when the state machine exits the specified state.
The state to handle exit for
A method decorator
@kosStateExit('pouring')handlePouringEnd(): void { this.logger.info('Pour ended'); EventBus.publish(TOPIC_POUR_ENDED, { id: this.id });} Copy
@kosStateExit('pouring')handlePouringEnd(): void { this.logger.info('Pour ended'); EventBus.publish(TOPIC_POUR_ENDED, { id: this.id });}
Method decorator that marks a method as a state exit handler. The decorated method will be called when the state machine exits the specified state.