Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delays in update handlers #44

Open
ksqsf opened this issue May 12, 2021 · 0 comments
Open

Delays in update handlers #44

ksqsf opened this issue May 12, 2021 · 0 comments

Comments

@ksqsf
Copy link

ksqsf commented May 12, 2021

Hi, I need to delay for a few seconds before replying to some certain messages, but do not need these replies to be ordered, that is, these replies should be "streamlined".

Q1 (delay for 1 sec)
Q2 (immediately follows Q1)
A1 (received after 1sec)
A2 (immediately follows A1)

I observed that the updates are received 'concurrently', but the actions are not: A2 appears after 2 secs.

It seems there is no easy support for this scenario currently, and I may need to use bot jobs. I looked into Internal.hs and it seems the actions are serialized by botActionsQueue. (If I understand it correctly.)

Is there a better way to do it with the current version of the library?

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

No branches or pull requests

1 participant