Create cancellation token registration wrapper only when it's needed (#45075)
authorMarek Safar <marek.safar@gmail.com>
Mon, 23 Nov 2020 12:58:33 +0000 (13:58 +0100)
committerGitHub <noreply@github.com>
Mon, 23 Nov 2020 12:58:33 +0000 (13:58 +0100)
commit72185771e8dfd87d5a45732aec1566d8f3147c6e
treeb7c465df33a4b07f3a6e796ff8e9dc3f7bf1aea3
parentbf302de7f184c6e9dc23382980860af2849219e3
Create cancellation token registration wrapper only when it's needed (#45075)

Co-authored-by: Stephen Toub <stoub@microsoft.com>
src/libraries/System.Private.CoreLib/src/System/Threading/CancellationToken.cs