processEvent

abstract suspend fun processEvent(event: Event, argument: Any? = null): ProcessingResult

Processes Event. Machine must be started to be able to process events.

Return

ProcessingResult for current event. If more events will be queued while this method is working, there results will not be taken to account. Their processEventBlocking calls will return ProcessingResult.PENDING in this case.