Hello guys! Please help me with Coroutines. I need to implement this:
1. Run my task in background mode
2. Stop the task in 30 seconds
3. Delay 10 seconds.
4. Repeat my cycle (1-3 points) infinitely
https://prntscr.com/mu5xin (detailed on a picture)
03/06/2019, 4:57 PM
Also, could you please add some details which problem do you have with this, looks pretty straightforward, for item 2 withTimeout + try/catch may help
03/07/2019, 8:38 AM
Do you want to to delay 10 seconds even if the task takes the full 30 seconds?