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