Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Is System.Threading.Timer enabled or running?

$
0
0

I'm starting a timer with the following code

    _timer = new System.Threading.Timer ((o) => {
                                Console.WriteLine("hello from the timer");
                            }, null, 0, 10000);

After other events, I use _timer.Dispose();

I noticed the timer object has a 'disposed' property, but how can I access it? I need to check if I have disposed of the timer or not at other points on the activity.


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>