deco-cx / deco-cx/durable

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

Open
#17 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
TypeScript
Stars
6
Forks
2
PR merge metrics
No merged PRs in 30d

Description

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

```ts
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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.