create

suspend fun <S> create(initial: S): StmStateMachine<S>(source)

Creates a new StmStateMachine with the given initial state.