setIsDone

Sets the function that returns whether the command has finished running