Showing archive results for March 2014

Mar 19, 2014
Post comments count7
Post likes count1

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 I...

andarno