interrupt


Description:

[ Version ( since = "1.2" ) ]
public bool interrupt ()

Cooperatively interrupts the active transition callback.

If a transition callback is currently active, its interrupt future returned by [method@Dex.StateTransitionContext.wait_for_interrupt] is resolved. This does not request a transition or change the current state; the active callback decides how to handle the interrupt.

Parameters:

this

a [class@Dex.StateMachine]

Returns:

true if an active transition context was marked interrupted; otherwise false