i want to create some generic code that only runs a function once so i don't have to keep creating new flags and variables.
i was hoping for something like this:
this would automatically run that function one time and then store that it had been run,
allows the function to be run again next time runOnce() is called.
now all of this is easy enough to do with flags, but i wanted to make something more dynamic that can automatically create variables for each task that is passed to it.
is there a way to do this?