DEV Community

Discussion on: Timers in .NET

 
solrevdev profile image
John Smith

Ahh yes, the timer's TimerCallback method signature needed to be void DoWork(object state) hence needing another method call that uses async Task accepting a CancellationToken.

But looking at it again I think that DoWorkAsync and RunJobAsync could just be the one method.

I'll take another look later and will try and explain more in another blog post.

Thread Thread
 
katnel20 profile image
Katie Nelson

Great! Looking forward to it.