2018-05-26 00:28:02 +02:00
|
|
|
# System.Threading
|
|
|
|
|
|
|
|
``` diff
|
|
|
|
namespace System.Threading {
|
2018-06-06 20:43:50 +02:00
|
|
|
- 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);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|