Beispiel #1
0
        public async Task RepeatedTask_Run()
        {
            int counter = 0;
            await PeriodicTask.Repeat(3, () => counter ++, TimeSpan.FromMilliseconds(10));

            Assert.AreEqual(3, counter);
        }