Click here to Skip to main content
15,887,683 members

Survey Results

Do you write async code in .NET?

Survey period: 28 Sep 2015 to 5 Oct 2015

The async/await keywords have been with us a while now. Are you taking advantage of them?

OptionVotes% 
Yes, whenever it makes sense55332.64
Yes, sometimes39223.14
No - we don't use .NET 4.526215.47
No - we don't have situations where async makes sense18210.74
No we don't27216.06
I don't code331.95



 
GeneralNot really Pin
Rob Philpott30-Sep-15 22:56
Rob Philpott30-Sep-15 22:56 
GeneralI don't like this attitude... Pin
Sander Rossel29-Sep-15 7:46
professionalSander Rossel29-Sep-15 7:46 
GeneralRe: I don't like this attitude... Pin
Rob Philpott30-Sep-15 22:46
Rob Philpott30-Sep-15 22:46 
GeneralRe: I don't like this attitude... Pin
Marius Bancila3-Oct-15 11:08
professionalMarius Bancila3-Oct-15 11:08 
GeneralRe: I don't like this attitude... Pin
obermd3-Oct-15 7:39
obermd3-Oct-15 7:39 
GeneralThe only thing that really sucks about async... Pin
Shopko29-Sep-15 7:05
Shopko29-Sep-15 7:05 
GeneralI still prefer BackgroundWorker Pin
Wastedtalent29-Sep-15 5:29
professionalWastedtalent29-Sep-15 5:29 
GeneralDon't do I/O on user thread Pin
pughjl29-Sep-15 2:03
pughjl29-Sep-15 2:03 
GeneralNot .NET? Pin
Peter Mulholland28-Sep-15 23:27
Peter Mulholland28-Sep-15 23:27 
GeneralRe: Not .NET? Pin
CDP18021-Oct-15 21:10
CDP18021-Oct-15 21:10 
GeneralThreads PinPopular
PIEBALDconsult28-Sep-15 5:22
mvePIEBALDconsult28-Sep-15 5:22 
GeneralJust use threads Pin
MarqW28-Sep-15 4:01
MarqW28-Sep-15 4:01 
GeneralNo opportunities yet Pin
Dan Neely28-Sep-15 2:53
Dan Neely28-Sep-15 2:53 
GeneralLimited use PinPopular
Marc Clifton28-Sep-15 1:44
mvaMarc Clifton28-Sep-15 1:44 
After working with it a lot, I've discovered that the whole async/await/Task business is usually not what I want. Task, being tied to the ThreadPool, is useless for long running tasks, especially if you have many of them. The exception handling is a PITA and you really need to study how to handle exceptions very carefully. Having to decorate methods as async, which then enforces (or warns) about certain behaviors, causes no end of grief and confusion as the tendency is to percolate async all the way back up to Main, but wait, you can't decorate Main as async to implement an await.

Last but not least are the mental convolutions one has to go through to figure out what the continuation does. Let's see. When I call await, it returns to the caller so that the caller continues chunking along. When the await completes, it continues with the code after the await and doesn't return to the caller. Now go through that same mental hoop, but with two or more nested awaits.

Except for very limited and understood behaviors, I'll stick with good ol' threads and my own thread pool management, thank you very much.

Marc

GeneralRe: Limited use Pin
Slacker00728-Sep-15 2:39
professionalSlacker00728-Sep-15 2:39 
GeneralRe: Limited use Pin
  Forogar  30-Sep-15 4:01
professional  Forogar  30-Sep-15 4:01 
GeneralRe: Limited use Pin
Mike (Prof. Chuck)30-Sep-15 6:23
professionalMike (Prof. Chuck)30-Sep-15 6:23 
GeneralIt's Turtles All the Way Down... Pin
Agent__00727-Sep-15 23:01
professionalAgent__00727-Sep-15 23:01 
GeneralRe: It's Turtles All the Way Down... Pin
Slacker00728-Sep-15 2:38
professionalSlacker00728-Sep-15 2:38 
General.NET only, or is WinRT included? Pin
Afzaal Ahmad Zeeshan27-Sep-15 22:04
professionalAfzaal Ahmad Zeeshan27-Sep-15 22:04 
GeneralWhenever it makes sense Pin
AlexCode27-Sep-15 21:55
professionalAlexCode27-Sep-15 21:55 
GeneralNative code rulez Pin
den2k8827-Sep-15 21:24
professionalden2k8827-Sep-15 21:24 
GeneralRe: Native code rulez Pin
KarstenK29-Sep-15 2:40
mveKarstenK29-Sep-15 2:40 
GeneralRe: Native code rulez Pin
den2k8829-Sep-15 2:48
professionalden2k8829-Sep-15 2:48 
GeneralWe use .NET but I don't Pin
R. Erasmus27-Sep-15 20:51
R. Erasmus27-Sep-15 20:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.