TaskTimer: how to execute task on a timer
Over the week-end I created the TaskTimer class that allows to execute code on timer in an async method: static async Task DoStuffOnTimer() { using (var timer = new TaskTimer(1000).Start()) { foreach (var task in timer) { await task; DoStuff(); } } } Source […]