Skip to content

Commit

Permalink
Edits
Browse files Browse the repository at this point in the history
  • Loading branch information
dandavison committed Jan 13, 2025
1 parent 8841c9f commit c4f2399
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions await-signals/README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
* The sample demonstrates how to deal with multiple signals that can come out of order and require actions
* if a certain signal not received in a specified time interval.

This specific sample receives three signals: Signal1, Signal2, Signal3. They have to be processed in the
This specific sample receives three signals: Signal1, Signal2, Signal3. They have to be processed in
sequential order, but they can be received out of order.
There are two timeouts to enforce.
The first one is the maximum time between signals.
The second limits the total time since the first signal received.

A naive implementation of such use case would use a single loop that contains a Selector to listen on three
signals and a timer. Something like:
A naive implementation would use a single loop that contains a Selector to listen on three signals and a timer.
Something like:

for {
selector := workflow.NewSelector(ctx)
Expand Down

0 comments on commit c4f2399

Please sign in to comment.