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
Selector can block in Default path without loosing signals
Actual Behavior
Selector that block in the Default path risk loosing signals
When a signal is sent to the channel while the AddDefault method (long running) is executing, the signal is lost without being received. This was because if AddDefault is specified, the readyFunc is never executed. By storing the value in channel's recValue beforehand, we are making it available for any future receives on that channel without dropping the signal.
Expected Behavior
Selector can block in Default path without loosing signals
Actual Behavior
Selector that block in the Default path risk loosing signals
When a signal is sent to the channel while the AddDefault method (long running) is executing, the signal is lost without being received. This was because if AddDefault is specified, the readyFunc is never executed. By storing the value in channel's recValue beforehand, we are making it available for any future receives on that channel without dropping the signal.
Steps to Reproduce the Problem
See: altafDevRev/temporal-samples#1
The text was updated successfully, but these errors were encountered: