Answer the question
In order to leave comments, you need to log in
Do I need to create a CancellationToken for each task?
Do I need to create a new CancellationToken for each task ?
or you can use one:
public static CancellationToken DefaultTimeToken = new CancellationTokenSource(TimeSpan.FromMilliseconds(3000)).Token;
Answer the question
In order to leave comments, you need to log in
Eee and cancel absolutely all tasks with one token? If it suits you, you can.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question