2 writes to _availableStreamsWaiter
System.Net.Http (2)
System\Net\Http\SocketsHttpHandler\Http2Connection.cs (2)
351
_availableStreamsWaiter
= new TaskCompletionSource<bool>(TaskCreationOptions.RunContinuationsAsynchronously);
366
_availableStreamsWaiter
= null;
10 references to _availableStreamsWaiter
System.Net.Http (10)
System\Net\Http\SocketsHttpHandler\Http2Connection.cs (10)
309
Debug.Assert(
_availableStreamsWaiter
is null || _streamsInUse >= _maxConcurrentStreams);
338
Debug.Assert(
_availableStreamsWaiter
is null, "As used currently, shouldn't already have a waiter");
352
return
_availableStreamsWaiter
.Task;
358
if (NetEventSource.Log.IsEnabled()) Trace($"{nameof(result)}={result}, {nameof(
_availableStreamsWaiter
)}?={
_availableStreamsWaiter
is not null}");
362
if (
_availableStreamsWaiter
is not null)
365
_availableStreamsWaiter
.SetResult(result);
920
if (NetEventSource.Log.IsEnabled()) Trace($"{nameof(newValue)}={newValue}, {nameof(_streamsInUse)}={_streamsInUse}, {nameof(
_availableStreamsWaiter
)}?={
_availableStreamsWaiter
is not null}");
922
Debug.Assert(
_availableStreamsWaiter
is null || _streamsInUse >= _maxConcurrentStreams);