Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

When an empty CancellationToken is used

$
0
0

There is some code in Forms that does

new CancellationToken()

when an useless CancellationToken is being used. It is better to use

CancellationToken.None

static instance to avoid unnecessary instance creation. Just sayin :)


Viewing all articles
Browse latest Browse all 204402


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>