forum

home / developersection / forums / difference between await and task.wait

Difference between await and Task.Wait

Anonymous User 4893 27-Dec-2013

First way:

var tds=SearchProcess();
await tds;
public async  Task<XmlElement> SearchProcess()
{
}

Second way:

var tds= Task.Factory.StartNew(()=>SearchProcess());
Task.WaitAll(tds);
public XmlElement SearchProcess()
{
}

In above both approach any performance difference is there?


c# c# 
Updated on 27-Dec-2013

I am a content writter !


Message
Can you answer this question?

Answer

1 Answers

Liked By