Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

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 58056

Trending Articles



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