WIP: Make the UpdateRecevier not wait for each handler #4

Closed
XSilverTH wants to merge 3 commits from parallelhandler into master
XSilverTH commented 2025-12-18 14:03:43 +00:00 (Migrated from github.com)

I have no idea if awaiting each handler was intended behavior but it seems wrong to me to freeze the whole bot just because a command is taking long to execute

I have no idea if awaiting each handler was intended behavior but it seems wrong to me to freeze the whole bot just because a command is taking long to execute
Rikitav commented 2025-12-27 08:19:21 +00:00 (Migrated from github.com)

The receiver is not a component that is responsible for the execution of handlers. This is handled by IUpdateRouter, the standard implementation uses a pool to manage the life of handlers. For more info check : https://github.com/Rikitav/Telegrator/blob/master/Telegrator/Polling/UpdateRouter.cs

The receiver is not a component that is responsible for the execution of handlers. This is handled by IUpdateRouter, the standard implementation uses a pool to manage the life of handlers. For more info check : https://github.com/Rikitav/Telegrator/blob/master/Telegrator/Polling/UpdateRouter.cs
XSilverTH commented 2025-12-29 12:53:31 +00:00 (Migrated from github.com)

i still don't know if executing handlers synchronously was intended behaviour or not
considering MaximumParallelWorkingHandlers exists i assume not

i still don't know if executing handlers synchronously was intended behaviour or not considering MaximumParallelWorkingHandlers exists i assume not

Pull request closed

Sign in to join this conversation.