Skip to content

Conversation

@AZMCode
Copy link

@AZMCode AZMCode commented Aug 23, 2021

Implementation of Feature Request in Issue #50

The double `await`s are necessary since the MultiCommand::execute()
method is both async and is carrying a Thenable from the child command,
which also needs to be unwrapped to mimick the return value correctly.
Copy link
Owner

@ryuta46 ryuta46 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added a comment about the order of execution of each command in a sequence.

let lastOutput: Thenable<unknown> | undefined;
for (let command of this.sequence) {
await command.execute();
lastOutput = command.execute();
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does removing await affect the order of execution of the sequence ?
Does the later command execute after the prior command has finished and waited the interval in setting ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants