Add CancellationToken.Register with callback accepting token (#43114)
authorStephen Toub <stoub@microsoft.com>
Fri, 9 Oct 2020 01:57:38 +0000 (21:57 -0400)
committerGitHub <noreply@github.com>
Fri, 9 Oct 2020 01:57:38 +0000 (21:57 -0400)
commit12025658acf6c9747fcbb63569be4107b3e0f0f3
treeca565e5e0068e883d54e0c8718340aef4693ae6b
parent210e26cfbe96fa3119ea85a81e321ae76b122089
Add CancellationToken.Register with callback accepting token (#43114)

* Add CancellationToken.Register with callback accepting token

* Address PR feedback
src/libraries/Common/src/System/Threading/Tasks/TaskCompletionSourceWithCancellation.cs
src/libraries/System.Diagnostics.Process/src/System/Diagnostics/Process.cs
src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/CreditWaiter.cs
src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/Http2Connection.cs
src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/Http2Stream.cs
src/libraries/System.Private.CoreLib/src/System/Threading/CancellationToken.cs
src/libraries/System.Private.CoreLib/src/System/Threading/CancellationTokenSource.cs
src/libraries/System.Private.CoreLib/src/System/Threading/Tasks/Task.cs
src/libraries/System.Runtime/ref/System.Runtime.cs
src/libraries/System.Threading.Tasks/tests/CancellationTokenTests.cs