Having the GetOrAdd before GetOrAddAsync, the test would succeed.
I assume that the private method UnwrapLazy is not considering the new AsyncLazy enhancements from September. Would be great if you could apply a fix for that, I would like to use this library in a mixed sync/async environment.
Please, consider the following failing sample unit test:
Note:
actualSync
isnull
.GetOrAdd
beforeGetOrAddAsync
, the test would succeed.I assume that the private method
UnwrapLazy
is not considering the newAsyncLazy
enhancements from September. Would be great if you could apply a fix for that, I would like to use this library in a mixed sync/async environment.Thanks for sharing this library, great work.
Best regards, BadDonkey