Async in C# 5.0: Async methods and return value

Async in C# 5.0

Async methods that return task allow the caller to wait for the operation to finish, and propagate any exception that happended during the asynchronous operation. When no result value is needed, an async Task method is better than as async void method because it allows the caller to also use await for it, making ordering and exception handling easier.

source: Async in C# 5.0

Technorati tags: C#,ASync

Tags: ,

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: