What's a benefits or drawbacks of using Device.StartTimer
vs System.Threading.Timer
?
Both are firing on background threads, both are cross-platform and netstandard2 compatible. System.Threading.Timer
has a bonus points of being non-Xamarin specific.
What should I use and when?
- Device.StartTimer use native APIs.
- According to github.com/mono,
System.Threading.Timer
seems to use dedicated thread for all timers. Am I right, or do Xamarin use another implementation?