File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
55sequential order, but they can be received out of order.
66There are two timeouts to enforce.
77The first one is the maximum time between signals.
88The 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)
You can’t perform that action at this time.
0 commit comments