<PackageReference Include="Nito.AsyncEx.Coordination" Version="5.0.0-pre-05" />

Nito.AsyncEx.AsyncLazyFlags

public enum AsyncLazyFlags
Flags controlling the behavior of AsyncLazy<T>.

Execute the factory method on the calling thread.

None = 0

No special flags. The factory method is executed on a thread pool thread, and does not retry initialization on failures (failures are cached).

If the factory method fails, then re-run the factory method the next time instead of caching the failed task.