D
D
Dmitry Shevchenko2021-12-16 18:25:50
Python
Dmitry Shevchenko, 2021-12-16 18:25:50

How to implement multiple parallel timers?

I want to implement waiting for a response in a telegram bot for 5 seconds, but given that there can be a lot of waiting at the same time, then just going into a loop and waiting is not an option. Tell me how to do it so that it does not take up a lot of resources.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vindicar, 2021-12-16
@Vindicar

If the bot is asynchronous, then many parallel waits will not be a problem.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question