along

infix fun Action.along(action: Action): ParallelAction

Wraps this action and the passed action with a ParallelAction, executing them both at the same time.

Return

ParallelAction storing both actions.

Parameters

action

will be executed at the same time as this action.


infix fun ParallelAction.along(action: Action): ParallelAction

Adds action to this ParallelAction, so long as this isn't a SequenceAction. If it is a SequenceAction, it creates a new ParallelAction executing both actions in parallel.

Return

this ParallelAction, now containing action, or a new ParallelAction if this is a SequenceAction.

Parameters

action

will be added to this ParallelAction.

See also

for a non-mutating alternative.