D’oh. I did say that didn’t I. Corrected to match the code, which is what I meant to say:
“How does Thread.sleep
work differently than Coroutine’s delay
”
This post goes into detail how it may free up the thread to do other work. Maybe that is the only difference, and it isn’t more lightweight, or finer-grained time slices, or anything useful in a small IoT device.