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