Click here to Skip to main content
15,925,309 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Delegates and I am so glad to leave MS behind Pin
Jeremy Falcon24-Jun-24 12:33
professionalJeremy Falcon24-Jun-24 12:33 
GeneralRe: Delegates and I am so glad to leave MS behind Pin
Marc Clifton24-Jun-24 13:31
mvaMarc Clifton24-Jun-24 13:31 
GeneralRe: Delegates and I am so glad to leave MS behind Pin
Jeremy Falcon24-Jun-24 14:47
professionalJeremy Falcon24-Jun-24 14:47 
GeneralRe: Delegates and I am so glad to leave MS behind Pin
jochance25-Jun-24 5:40
jochance25-Jun-24 5:40 
GeneralRe: Delegates and I am so glad to leave MS behind Pin
dandy7225-Jun-24 3:46
dandy7225-Jun-24 3:46 
GeneralRe: Delegates and I am so glad to leave MS behind Pin
Member 1046756925-Jun-24 22:26
Member 1046756925-Jun-24 22:26 
GeneralRe: Delegates and I am so glad to leave MS behind Pin
dandy7226-Jun-24 4:31
dandy7226-Jun-24 4:31 
GeneralRe: Delegates and I am so glad to leave MS behind Pin
Andre_Prellwitz26-Jun-24 17:58
Andre_Prellwitz26-Jun-24 17:58 
Mainly it grows because every async method has a state machine created by the compiler. Yes, partial async is a contradiction and at best leads to the same thread-blocking as fully synchronous code, while the usually worst outcome is deadlock. The fact that async is an all-or-nothing commitment is IMO the main reason for developers not embracing it, but there's no excuse to not use it for greenfield projects. If you do it right, you also pass a CancellationToken with every call; increasingly, I'm also becoming convinced of passing IProgress<t>, at least for certain public members.

There was recent interest in replicating the Go concept of green threads, which I think would have been a game changer had it been used instead of async/await. Green Thread Experiment Results · Issue #2398 · dotnet/runtimelab · GitHub[^]
GeneralRe: Delegates and I am so glad to leave MS behind Pin
Mike Hankey24-Jun-24 12:56
mveMike Hankey24-Jun-24 12:56 
GeneralRe: Delegates and I am so glad to leave MS behind Pin
Richard Andrew x6424-Jun-24 14:39
professionalRichard Andrew x6424-Jun-24 14:39 
GeneralRe: Delegates and I am so glad to leave MS behind Pin
charlieg24-Jun-24 15:35
charlieg24-Jun-24 15:35 
GeneralRe: Delegates and I am so glad to leave MS behind Pin
Richard Andrew x6424-Jun-24 15:40
professionalRichard Andrew x6424-Jun-24 15:40 
GeneralRe: Delegates and I am so glad to leave MS behind Pin
dandy7225-Jun-24 3:40
dandy7225-Jun-24 3:40 
GeneralRe: Delegates and I am so glad to leave MS behind Pin
Paul Mauriks25-Jun-24 20:23
Paul Mauriks25-Jun-24 20:23 
GeneralRe: Delegates and I am so glad to leave MS behind Pin
Greg Utas24-Jun-24 18:07
professionalGreg Utas24-Jun-24 18:07 
GeneralRe: Delegates and I am so glad to leave MS behind Pin
swampwiz24-Jun-24 17:03
swampwiz24-Jun-24 17:03 
GeneralRe: Delegates and I am so glad to leave MS behind Pin
charlieg25-Jun-24 0:28
charlieg25-Jun-24 0:28 
GeneralRe: Delegates and I am so glad to leave MS behind Pin
dandy7225-Jun-24 3:51
dandy7225-Jun-24 3:51 
GeneralRe: Delegates and I am so glad to leave MS behind Pin
David O'Neil24-Jun-24 17:43
professionalDavid O'Neil24-Jun-24 17:43 
GeneralRe: Delegates and I am so glad to leave MS behind Pin
pkfox24-Jun-24 20:43
professionalpkfox24-Jun-24 20:43 
GeneralRe: Delegates and I am so glad to leave MS behind Pin
charlieg25-Jun-24 0:29
charlieg25-Jun-24 0:29 
GeneralRe: Delegates and I am so glad to leave MS behind Pin
theoldfool25-Jun-24 2:18
professionaltheoldfool25-Jun-24 2:18 
GeneralRe: Delegates and I am so glad to leave MS behind Pin
rnbergren25-Jun-24 2:34
rnbergren25-Jun-24 2:34 
GeneralRe: Delegates and I am so glad to leave MS behind Pin
dandy7225-Jun-24 3:37
dandy7225-Jun-24 3:37 
GeneralRe: Delegates and I am so glad to leave MS behind Pin
Chris Baker 202126-Jun-24 1:34
Chris Baker 202126-Jun-24 1:34 

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.