A simple class for spreading out a repetitive task on the main thread, allowing the UI to draw.