Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ WaitForAvailableStreamsAsync()

ValueTask< bool > System.Net.Http.Http2Connection.WaitForAvailableStreamsAsync ( )
inline

Definition at line 1935 of file Http2Connection.cs.

1936 {
1938 {
1939 if (_disposed)
1940 {
1941 throw new ObjectDisposedException("Http2Connection");
1942 }
1943 if (_shutdown)
1944 {
1945 return ValueTask.FromResult(result: false);
1946 }
1948 {
1949 return ValueTask.FromResult(result: true);
1950 }
1951 _availableStreamsWaiter = new TaskCompletionSource<bool>(TaskCreationOptions.RunContinuationsAsynchronously);
1953 }
1954 }
TaskCompletionSource< bool > _availableStreamsWaiter

References System.Net.Http.Http2Connection._availableStreamsWaiter, System.Net.Http.Http2Connection._disposed, System.Net.Http.Http2Connection._maxConcurrentStreams, System.Net.Http.Http2Connection._shutdown, System.Net.Http.Http2Connection._streamsInUse, System.Net.Http.Http2Connection.SyncObject, and System.Threading.Tasks.TaskCompletionSource< TResult >.Task.

Referenced by System.Net.Http.HttpConnectionPool.DisableHttp2Connection().