You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using CreateLinkedTokenSource and CancelAfter seems simpler, the implementation of CreateLinkedTokenSource hides this UnsafeRegister call and the CanBeCanceled check
Here using UsafeRegister avoids allocating a CTS, but other than that the CreateLinkedTokenSource is similar under the hood it uses UnsafeRegister we are not paying for the synchronization context stuff
CreateLinkedTokenSource + CancelAfter creates one less disposable object and doesn't involve UnsafeRegister... so it looks cleaner.
Originally posted by @bernardnormier in #2396 (comment)
The text was updated successfully, but these errors were encountered: