I am using System.Threading.Timer to make my current thread wait for a specific time. I am not using any intervals because I do not want the function to repeat itself. The problem with my code is that my timer does not work for due time values that are more than 2 seconds. Is it a memory issue or some error in my code. Can anyone help. Thanks. Here is my sample code.
var timer = new System.Threading.Timer(a =>
{
//Stuff to perform after 10 seconds
}, null, 10000, 0);