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