Showing results for March 2014 - Developer Support

Mar 19, 2014
7
0

Recommended patterns for CancellationToken

Andrew Arnott
Andrew Arnott

Whether you're doing async work or not, accepting a CancellationToken as a parameter to your method is a great pattern for allowing your caller to express lost interest in the result. Supporting cancelable operations comes with a little bit of extra responsibility on your part. Optional CancellationToken parameter ...

andarno

Feedback