And after a bit of mucking about, the answer to your original question about how to use functions. Be nice if there was just a bit more documentation (like any at all really). It was ok with me using the client. namespace at first, and then it star…
It's also possible that you may not need to loop at all. Just set the function trigger to fire on something that happens with about the right duration. If you want it to change often, set it on balance recovery. Assuming you are doing anything, it'l…