Tom Colvin
Jan 29, 2024

--

Hi Sven, you are of course absolutely correct. That example was contrived as a way to introduce 'yield()' by comparison to 'delay()'. But yes, in the real world it would be much better to just check isActive. I'll update the article to note that.

--

--

Tom Colvin
Tom Colvin

Written by Tom Colvin

Android developer / consultant; freelancer or through my agency Apptaura. Google Developer Expert in Android. tomcolvin.co.uk Articles 100% me, no AI.

No responses yet