C# consumer flow dispose

Hi,

Can you provide some numbers? What do you mean by ‘a while’ and how big a difference does the window size make?
In general ‘flow.Dispose()’ is a simple non-blocking operation that may cause some garbage collection as objects are destroyed. However it can be held up if the callback thread is running slow or blocked. As your main loop does nothing but wait for a signal, the question the comes to mind is what is generating that signal?
Is the signal generated in a callback on received message or event? What does that callback do after sending the signal?
Regards,
Ragnar