Is it safe to drop Dispatcher's Future? #967
Answered
by
WaffleLapkin
istudyatuni
asked this question in
Q&A
-
As stated in #711 (comment) , it's possible to just drop Dispatcher's Future without waiting for long shutdown. Question is, is it safe to do so? Probably when stopping, some important tasks are executed? |
Beta Was this translation helpful? Give feedback.
Answered by
WaffleLapkin
Nov 13, 2023
Replies: 1 comment 3 replies
-
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
You may also want to build |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
istudyatuni
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
You may also want to build
teloxide
from master branch (i.e. via agit=
dependency and a pinned commit), because #938 fixes the problem with very long shutdowns.