Runs the machine until a transition from the source state to the target state occurs.
source
target
A state machine Actor type
An existing xs.Actor
Source state ID
Target state ID
A Promise that resolves when the transition occurs
Promise
Returns itself
Param: actor
Param: source
Param: target
Returns