Why ConfigureAwait(false) is not the default option? [closed]

Most code that works with .ConfigureAwait(false) also works, although subobtimal, with .ConfigureAwait(true). Yes, not all code, but still most. The current default lets the highest percentage of code work without tinkering with settings that an average programmer might not understand.

A different default would just lead to thousands of questions about why the code does not work, and worse yet, thousands of answers in the form of “Microsoft sucks, they make you write Control.CheckForIllegalCrossThreadCalls = false; in every program. Why isn’t that the default?” rather than actually adding the appropriate .ConfigureAwait(true) calls.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)