Skip to content
This repository has been archived by the owner on Feb 10, 2023. It is now read-only.

Add race(...commandList) and all(...commandList) commands #24

Open
mcandeia opened this issue Jan 23, 2023 · 0 comments
Open

Add race(...commandList) and all(...commandList) commands #24

mcandeia opened this issue Jan 23, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@mcandeia
Copy link
Owner

They should work exactly how Promise.all and Promise.race works but for commands.

const payloadOrVoid = yield ctx.race([ctx.sleep(10 *Second), ctx.waitForSignal("sms_response")]

This should be modeled as a single command that contains two commands in it. Similarly, a single event should contain execution of both commands.

@mcandeia mcandeia added the enhancement New feature or request label Jan 23, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant