costatements & waitfor(x) 's question

I know in other RTOS, which is what costatemnts are trying to mimic, that you have to place a delay in the task to release the RTOS can go to run another task. I don’t know if the same applies here using statements or not.

if i have 10 costatements and none of them have a “waitfor(DelayMs(x));” call in them will that screw things up. OR should i always have a “waitfor(DelayMs(x));” call in them to allow them to put some time into other costatements ?

You should have a yield in each costatement, that is essentially what a waitfor is.

So for your costatements that doesn’t have a waitfor, just place a yield somewhere where it is called regularly.