Dear Erel,
of course there is no motivation in the example I wrote. It was just the template I used
in order to check the behavioral model about events.
Moreover, we already use StartMessageLoop at the end in AppStart after initializations.
My question was aimed at have two options : non-blocking / blocking in a class method.
For the case of blocking it would be necessary to wait for a timeout event or
a newdata-from-asyncstream event but, of course, such events cannot be dispatched
if previous event execution is stuck in a loop.
Hence, I asked if there could be something like DoNextMessage or Yeld, or whatever else.
Is it possible to poll for data on an asyncstream ?