ConcurrentDictionary GetOrAdd async
GetOrAdd won’t become an asynchronous operation because accessing the value of a dictionary isn’t a long running operation. What you can do however is simply store tasks in the dictionary, rather than the materialized result. Anyone needing the results can then await that task. However, you also need to ensure that the operation is only … Read more