Takes a list of delays, in seconds, and an action to execute
repeatedly. The action is then executed repeatedly in a separate thread
until the list has been consumed. The first action takes place immediately.