Customizability comes to type returned from an async method

In the same way it’s possible to await any type following a specific ‘trait’ (yes, we need them in C#), It’s now possible to return custom type from an async method: Return Any (Task-Like) Type From An Async Method | Bar Arnon. We can thanks corefx, Roslyn and Stephen Toub.

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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