c# Programming Glossary: intervalinmilliseconds
Is there a Task based replacement for System.Threading.Timer? http://stackoverflow.com/questions/4890915/is-there-a-task-based-replacement-for-system-threading-timer public static Task StartPeriodicTask Action action int intervalInMilliseconds int delayInMilliseconds CancellationToken cancelToken Action.. if cancelToken.IsCancellationRequested intervalInMilliseconds Timeout.Infinite break Thread.Sleep intervalInMilliseconds.. Timeout.Infinite break Thread.Sleep intervalInMilliseconds return Task.Factory.StartNew mainAction cancelToken c# .net..
|