+ 1
{SOLVED} [PYTHON] Recursion but without reaching recursion limit
I want to call my function (it's get) every 0.1 second. I think that I can use recursion, but then soon I will reach recursion limit (yes, i know about changing it using sys). Can I do it another way, so my code will be able to run a lot of time without any errors?
2 Respuestas
+ 1
This can be done using threads for multitasking, see https://docs.python.org/3/library/threading.html#timer-objects
https://code.sololearn.com/cbbBP1yu7TkT/?ref=app
0
I want something like setTimeout in JS