async and await return type confusion
Hello friends i wanted to know the affects of return type of some async
method on its behavior like i have one method called methodasync1() like
private async void methodasync1(filename)
{
await getfileaysnc(filename);
}
and other function methodasync2() like
private async Task methodasync2(filename)
{
await getfileasync(filename);
}
are both functions work in same way or there is any difference. and also
any concept i should know plz tell me any idea and help is appreciated
No comments:
Post a Comment