Skip to content

Is it safe to drop Dispatcher's Future? #967

Answered by WaffleLapkin
istudyatuni asked this question in Q&A
Discussion options

You must be logged in to vote

It depends on definition of "safe". In rust terms: yes it's safe (i.e. can't lead to unsoundness).

However it will mean that

  1. Handlers are not guaranteed to run till completion
  2. You may receive some updates a second time when restarting the bot (that's relatively unlikely, but possible)

You may also want to build teloxide from master branch (i.e. via a git= dependency and a pinned commit), because #938 fixes the problem with very long shutdowns.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@istudyatuni
Comment options

@WaffleLapkin
Comment options

@istudyatuni
Comment options

Answer selected by istudyatuni
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants