Three Essential Tips for Using Async in Microsoft Visual C# and Visual Basic

Download this episode

Download Video

Description

You might already be using the new async language features in your C# or Visual Basic code—but are you using them effectively? Here are three essential tips to keep in mind: only use async void for event handlers; only use the threadpool for CPU-bound work; and use TaskCompletionSource to wrap events into Tasks. In this session, learn how to recognize bad async code smells, what the best-practice alternatives are, and why they’re important. The tips in this talk are a distillation of real-world practical experience that you'll put to use immediately.

Tag:

Breakout

Day:

2

Session Type:

Breakout

Code:

DEV-B319

Room:

Hall 7.5

Embed

Format

Available formats for this video:

Actual format may change based on video formats available and browser capability.

    The Discussion

    Comments closed

    Comments have been closed since this content was published more than 30 days ago, but if you'd like to continue the conversation, please create a new thread in our Forums, or Contact Us and let us know.