7 references to Task
Microsoft.Extensions.Caching.Hybrid (7)
Internal\DefaultHybridCache.StampedeStateT.cs (7)
85
return token.CanBeCanceled && !
Task
.IsCompleted ? WithCancellationAsync(log, this, token) : UnwrapReservedAsync(log);
98
var first = await System.Threading.Tasks.Task.WhenAny(stampede.
Task
, cancelStub.Task).ConfigureAwait(false);
105
Debug.Assert(ReferenceEquals(first, stampede.
Task
), "should not be cancelled");
108
result = await stampede.
Task
.ConfigureAwait(false);
140
var task =
Task
;
152
var result = ImmutableTypeCache<T>.IsImmutable ? (_sharedUnwrap ??= AwaitedAsync(log,
Task
)) : AwaitedAsync(log,
Task
);