But won't that increase the latency?
I am running the operations through internet using MQTT protocol. That has 3 different loops in itself. Plus I am using UDP for RF communication.
Now even if i want to run loops alternatively, The Button loop will be touched only after the MQTT and UDP loops will be covered.
That will increase the latency to a large extent. Wont it?