You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure in what scenario we want to process the additional signals, and how we can offer this to customers using this library.
That said, when we used ReceiveWithTimeout in our own projects, we do have a use-case for draining the signal channel before using it to ensure we take the latest.
For example, if we were to run ReceiveWithTimeout in a loop:
Receive signal
Workflow continues progressing
While (2) is happening, more signals are still being received, and collected
When the loop comes back round, (1) is instantly fired
For test case sending multiple same signal at the same time; it detects unhandled signal
The newer SDK also have selector.HasPending but not sure if that is useful in this scenario
Maybe something like below:
The text was updated successfully, but these errors were encountered: