2 writes to _cachedResult
Microsoft.CodeAnalysis.Workspaces (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AsyncLazy`1.cs (2)
97
_cachedResult
= Task.FromResult(value);
494
_cachedResult
= task;
12 references to _cachedResult
Microsoft.CodeAnalysis.Workspaces (12)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AsyncLazy`1.cs (12)
175
Contract.ThrowIfTrue(
_cachedResult
!= null &&
189
if (
_cachedResult
!= null)
191
result =
_cachedResult
.Result;
215
if (
_cachedResult
!= null)
217
return
_cachedResult
.Result;
312
Contract.ThrowIfNull(
_cachedResult
, $"We called {nameof(CompleteWithTask)} with a result, there should be a cached result.");
313
return
_cachedResult
.Result;
335
var cachedResult =
_cachedResult
;
347
if (
_cachedResult
!= null)
349
return
_cachedResult
;
488
if (
_cachedResult
!= null)
489
return
_cachedResult
;