telebot icon indicating copy to clipboard operation
telebot copied to clipboard

Upgrade tokio runtime to 0.2

Open alun opened this issue 5 years ago • 0 comments

It would be nice to upgrade used tokio runtime to 0.2. Currently it is impossible to seamlessly run async code with e.g. latest versions of:

reqwest = "0.10.6"
redis = "0.16.0"
etcd-client = "0.5.2"

They all depend on tokio 0.2 and panic when called from within the bot's async stream which is running on 0.1.

It is possible to workaround by creating 0.2 runtime and use .block_on for futures requiring it but this is obviously far from being perfect.

alun avatar Jun 21 '20 20:06 alun