then

infix fun Action.then(action: Action): SequenceAction

Wraps this action and the passed action in a SequenceAction.

Return

SequenceAction storing both actions.

Parameters

action

will be executed after this action.


infix fun SequenceAction.then(action: Action): SequenceAction

Adds action to this SequenceAction.

Return

this SequenceAction.

Parameters

action

will be added to this SequenceAction

See also

for a non-mutating alternative.