continue_to


Description:

public bool continue_to (uint target) throws Error

Attempts to continue from the current transition to target immediately.

The continuation runs while the state machine still holds its internal serialization slot, so queued [method@Dex.StateMachine.transition] requests are not processed first. If this has not explicitly set the state with [ method@Dex.StateTransitionContext.set_state], the current edge target is committed before the next edge is executed.

The next transition callback is called before this function returns. If that callback uses `dex_await()`, the same transition fiber suspends and resumes, while the state machine still holds the serialization slot. Chained continuations therefore use the normal C call stack and should be reserved for short, bounded chains rather than unbounded graph traversal.

The next edge is looked up from the real current state to target. If no such edge exists, false is returned and throws is set to [error@Dex.Error.INVALID_TRANSITION]. If the next edge callback fails, its error is propagated.

Parameters:

this

a [struct@Dex.StateTransitionContext]

target

the target state for the next edge

Returns:

true if the continuation succeeded; otherwise false