4 ms·
The proper way .NET offers for this is not Thread.Abort but passing a CancellationToken into the thread, making the timeout explicit to the executing thread. Al
by Maarten88 11y ago
The proper way .NET offers for this is not Thread.Abort but passing a CancellationToken into the thread, making the timeout explicit to the executing thread. All async functions in the framework have an overload accepting a CancellationToken.