9 references to TryTake
Microsoft.AspNetCore.HttpLogging (1)
FileLoggerProcessor.cs (1)
123while (_messageQueue.TryTake(out var message))
Microsoft.AspNetCore.Shared.Tests (1)
SingleThreadedSynchronizationContext.cs (1)
35while (context._queue.TryTake(out var item))
Microsoft.Build (1)
BackEnd\Components\Communications\NodeProviderOutOfProcBase.cs (1)
738while (_packetWriteQueue.TryTake(out var packet))
Microsoft.Extensions.Diagnostics.HealthChecks.Tests (1)
src\Shared\test\Shared.Tests\SingleThreadedSynchronizationContext.cs (1)
35while (context._queue.TryTake(out var item))
Microsoft.Extensions.Http.Polly.Tests (1)
src\Shared\test\Shared.Tests\SingleThreadedSynchronizationContext.cs (1)
35while (context._queue.TryTake(out var item))
Microsoft.Extensions.Logging.AzureAppServices (1)
BatchingLoggerProvider.cs (1)
94while (limit > 0 && _messageQueue.TryTake(out var message))
System.Collections.Concurrent (2)
System\Collections\Concurrent\BlockingCollection.cs (2)
1319if (!collections[i].IsCompleted && collections[i]._occupiedNodes.CurrentCount > 0 && collections[i].TryTake(out item)) 1413if (collections[index].TryTake(out item)) //case#1
VBCSCompiler.UnitTests (1)
Extensions.cs (1)
46if (collection.TryTake(out T value))