-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Labels
enhancementNew feature or requestNew feature or request
Description
First of all, thank you for this library! It has been a blast so far π₯
I have a use case where I want to dispatch two (or more) commands after a command finished. They're all promises.
Example;
export class OnJoinCommand extends Command<YourState, { sessionId: string }> {
execute({ sessionId }) {
this.state.players[sessionId] = new Player();
return [
new FirstCommand().setPayload({ sessionId }),
new SecondCommand().setPayload({ sessionId })
];
}
}
In that case SecondCommand
would execute after FirstCommand
finished, how would I execute both at the same time?
endel
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request