Skip to content

Commit c4f2399

Browse files
committed
Edits
1 parent 8841c9f commit c4f2399

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

await-signals/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
* The sample demonstrates how to deal with multiple signals that can come out of order and require actions
22
* if a certain signal not received in a specified time interval.
33

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

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

1313
for {
1414
selector := workflow.NewSelector(ctx)

0 commit comments

Comments
 (0)