AsyncEx icon indicating copy to clipboard operation
AsyncEx copied to clipboard

Why does AsyncLazy.ConfigureAwait have EditorBrowsableState.Never?

Open paulhickman-a365 opened this issue 6 years ago • 1 comments

Can I check the reason why the AsyncLazy.ConfigureAwait method has been hidden from intellisense?

Should we not be using .ConfigureAwait(false) when waiting on an AsyncLazy variable in library code?

paulhickman-a365 avatar Apr 30 '19 08:04 paulhickman-a365

Good point. I don't remember why that method has EditorBrowsableState, but I believe you are correct: it shouldn't be that way. Using ConfigureAwait(false) is fine with AsyncLazy<T>.

StephenCleary avatar Apr 30 '19 13:04 StephenCleary