1 instantiation of PooledCancellationTokenSource
Microsoft.AspNetCore.Http (1)
src\Shared\CancellationTokenSourcePool.cs (1)
22return new PooledCancellationTokenSource(this);
5 references to PooledCancellationTokenSource
Microsoft.AspNetCore.Http (5)
src\Shared\CancellationTokenSourcePool.cs (4)
12private readonly ConcurrentQueue<PooledCancellationTokenSource> _queue = new(); 15public PooledCancellationTokenSource Rent() 17if (_queue.TryDequeue(out var cts)) 25private bool Return(PooledCancellationTokenSource cts)
Timeouts\CancellationTokenLinker.cs (1)
14var timeoutCts = _ctsPool.Rent();