How to gracefully shutdown poolfiber?
Hello,
On the Loadbalancing example solution, you usually have instances of ApplicationBase, which reference a Lobby, which is synchronized by means of PoolFiber.
When server(s) are shutting down, these pool fibers are not waited to complete all their enqueued jobs. What is the correct way to do so - like waiting for Enqueue/Dequeue counters to equalize in ApplicationBase.TearDown or something?
Thank you
On the Loadbalancing example solution, you usually have instances of ApplicationBase, which reference a Lobby, which is synchronized by means of PoolFiber.
When server(s) are shutting down, these pool fibers are not waited to complete all their enqueued jobs. What is the correct way to do so - like waiting for Enqueue/Dequeue counters to equalize in ApplicationBase.TearDown or something?
Thank you
0
Comments
-
Yes, that apporach should work.0