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
Is your feature request related to a problem? Please describe.
In Stride.Engine.Events, there is are sync methods TryReceive and TryReceiveAll. However for async there is only ReceiveAsync(). The problem is that, if there are several events of that type, regular ReceiveAsync() would only return one, while others would get lost. It requires additional code to be created. Something like:
do {
var data= await EventReceiver.ReceiveAsync();
}
while (EventReceiver.Count > 0);
Describe the solution you'd like ReceiveAllAsync() - the method that will return a collection of all items. That would be clean, predictable and nice.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
In Stride.Engine.Events, there is are sync methods TryReceive and TryReceiveAll. However for async there is only ReceiveAsync(). The problem is that, if there are several events of that type, regular ReceiveAsync() would only return one, while others would get lost. It requires additional code to be created. Something like:
Describe the solution you'd like
ReceiveAllAsync() - the method that will return a collection of all items. That would be clean, predictable and nice.
The text was updated successfully, but these errors were encountered: