Hello guys! Please help me with Coroutines. I need...
# android
o
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)
g
#coroutines
👍 1
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
s
Do you want to to delay 10 seconds even if the task takes the full 30 seconds?
o
moved this question to #coroutines