There is a process which is executed in a task. I do not want more than one of these to execute simultaneously.
Is this the correct way to check to see if a task is
Even easier:
if (task?.IsCompleted ?? true) task = TaskFunction();