Skip to content

Make the UpdateRecevier not wait for each handler#4

Draft
XSilverTH wants to merge 3 commits intoRikitav:masterfrom
XSilverTH:parallelhandler
Draft

Make the UpdateRecevier not wait for each handler#4
XSilverTH wants to merge 3 commits intoRikitav:masterfrom
XSilverTH:parallelhandler

Conversation

@XSilverTH
Copy link

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
Copy link
Owner

Rikitav commented Dec 27, 2025

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
Copy link
Author

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

@XSilverTH XSilverTH marked this pull request as draft December 29, 2025 13:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants