Paul__B:
This is a general problem with "forums" with innumerable "threads" streaming away and no fixed "root" structure. A Wiki (in addition) would seem more appropriate.
That is what the Playground is - a wiki. Top menubar of the standard Ardino webpage, Learning - Playground. In the left menu selection try "Tutorials", and therein "Protothreading, Timing & Millis", and in that section "How and Why to avoid delay".
(editing post - forgot to add ) I think it is fine to place it here. But before placing it here as a finished example, you could perhaps have let the discussion and suggestions run in Programming. Your example has at least two errors as others have pointed out.