Recently I am studying and trying C#
and I have some confusing points to clear out regarding tasks scheduling in C#
.
According to what I learnt, I have understood that task scheduling in C# can be done by using Timer
and TaskScheduler
.
I have followed these articles: create task scheduler using TaskScheduler class, create task scheduler using Timers
So my confusion is when should we actually use Timer
and TaskScheduler
for scheduling tasks?
Thank you!