BEWARE! Async Lazy in C# Is Easy... But Is It Safe?
August 11, 2023
• 1,845 views
csharpdotnetdotnet corelazy loadingc# lazyc# lazy initializationlazy initializationlazy initialization c#lazy loading in c#lazy loadlazy load imageasp.net developersdotnet developer.net open sourcecsharp tutorial for beginnersvisual studio 2022features of c# languagedotnet lazy asyncdot netlazy load dotnetasp.net corehow to lazy loadautofac lazyiocautofacautofac lazy injectionasyncasync c# explainedasync await
Now that you're using the Lazy class in C# to handle lazy initialization the dotnet way, you're encountering situations where you want to use async await with it. But does the Lazy class support asynchronous operations? And if it does... should we be using it? Let's find out.
For more software engineering videos, check this out:
https://www.youtube.com/watch?v=9NIhzWDAmzE&list=PLzATctVhnsghjyegbPZOCpnctSPr_dOaF
Have you subscribed to my weekly newsletter yet? A 5-minute read every weekend, rig...
