I have two methods, for example Method1 and Method2. How can I invoke Method2 500ms after Method1 completes?
public void Method1()
{
}
public void Method2()
{
}
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
EDIT
Due to the issue highlighted by @spender this code is problematic and could lead to thread starvation (see: http://msdn.microsoft.com/en-us/library/ff963549.aspx). The timer suggested by @HiTech Magic seems a better way to go.