I\'m new to .Net 4.0\'s Tasks and I wasn\'t able to find what I thought would be a Task based replacement or implementation of a Timer, e.g. a periodic Task. Is there such a
static class Helper { public async static Task ExecuteInterval(Action execute, int millisecond, IWorker worker) { while (worker.Worked) { execute(); await Task.Delay(millisecond); } } } interface IWorker { bool Worked { get; } }
Simple...