I have the following code:
CancellationTokenSource cancelSource = new CancellationTokenSource();
_cancelTokenList.Add(cancelSource);
CancellationToken token = cancelSource.Token;
Task.Factory.StartNew(() =>
{
StartTest(token);
}, token);
Will an exception be thrown if the threads are not available to service the request for a new task, or just wait until the thread becomes available? If he waits, how long will he wait?
source
share