How to delete interval after exit screen #3219
Answered
by
davep
jakubziebin
asked this question in
Q&A
-
I have class in one screen which set_interval:
When I leave the screen where I created an instance of this class, can I delete this interval? |
Beta Was this translation helpful? Give feedback.
Answered by
davep
Sep 1, 2023
Replies: 1 comment
-
See the documentation for |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
jakubziebin
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See the documentation for
set_interval
; you'll notice that it returns aTimer
. So you could save that when you callset_interval
and thenstop
it just before you leave the screen.