runFor

Utility for creating a DynamicTask that will loop some function for some time.