+ 1
How to run a function until another gets finished ?
I have two functions spinner() and sleep_5() I want to run the spinner untill sleep_5() is executing and then after completion of sleep_5() I want to stop the spinner() also I am getting error..! here is my attempt : https://code.sololearn.com/cuTZ1X2Z3XTF/?ref=app
1 Respuesta
+ 1
It's giving you Assertion Error.
You can only check clips process and sleep_5 is not child process of spinner.
Sleep_5 is not related to spinner. Child process of spinner will be a process which will run under it's function