dotnet-core/release-notes/2.1/api-diff/2.0-vs-2.1_System.Threading.md

20 lines
707 B
Markdown
Raw Normal View History

2018-05-26 00:28:02 +02:00
# System.Threading
``` diff
namespace System.Threading {
- public struct CancellationToken
+ public readonly struct CancellationToken
- public struct CancellationTokenRegistration : IDisposable, IEquatable<CancellationTokenRegistration> {
+ public readonly struct CancellationTokenRegistration : IDisposable, IEquatable<CancellationTokenRegistration> {
2018-05-26 00:28:02 +02:00
+ public CancellationToken Token { get; }
}
public sealed class Thread : CriticalFinalizerObject {
+ public static int GetCurrentProcessorId();
}
public static class ThreadPool {
+ public static bool QueueUserWorkItem<TState>(Action<TState> callBack, TState state, bool preferLocal);
}
}
```