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

◆ WaitForShutdownAsync()

ValueTask System.Net.Http.Http2Connection.WaitForShutdownAsync ( )
inline

Definition at line 1846 of file Http2Connection.cs.

1847 {
1849 {
1850 if (_disposed)
1851 {
1852 throw new ObjectDisposedException("Http2Connection");
1853 }
1854 if (_shutdown)
1855 {
1856 return default(ValueTask);
1857 }
1858 if (_shutdownWaiter == null)
1859 {
1860 _shutdownWaiter = new TaskCompletionSource(TaskCreationOptions.RunContinuationsAsynchronously);
1861 }
1862 return new ValueTask(_shutdownWaiter.Task);
1863 }
1864 }
TaskCompletionSource _shutdownWaiter

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

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