Showing results for asynchronous - Developer Support

Sep 7, 2018
0
0

Raw threads and async lambdas

Developer Support
Developer Support

Using async methods/lambdas where they are not expected causes unexpected problems. The typical example I discuss with people is TaskFactory.StartNew() because its an easy way to create Tasks and some people reach for that instead of Task.Run(), but I recently came across some code hitting the same problem while creating threads the traditional way...

Team.NETasynchronous
Jan 9, 2018
0
0

Async Main() is available, but hidden

Pam Lahoud
Pam Lahoud

Check out this quick tip on unlocking the new features of C# 7.1 from Premier Developer consultant Ben Williams.Ever try to use async/await in your Main method of a .NET app? You couldn’t before, but now you can. I just posted a quick tip about enabling this by turning on C# 7.1 features in Visual Studio (they are not enabled by default). https://b...

.NETC#Ben Williams
Mar 7, 2017
0
0

An alternative to ConfigureAwait(false) everywhere

Pam Lahoud
Pam Lahoud

In his latest blog post, Premier Developer consultant Ben Williams brings us this article on asynchronous code. One of the general recommendations you may often read is to use ConfigureAwait(false) in library code. This is so that when the library is used, it does not block the synchronization context in use by the application (e.g. the UI thread...

Ben Williamsasynchronous
Sep 29, 2015
0
0

Tasks are (still) not threads and async is not parallel

Pam Lahoud
Pam Lahoud

Premier Developer consultant Ben Williams recently had the honor of having one of his blog posts reposted to Wintellect’s Dev Center as a guest post.  Here’s a blurb from that post, be sure to head over to Ben’s blog to check out the full technical deep-dive and download his sample WPF application. I talk to a lot of developers who are either...

.NETBen Williamsasynchronous