dotnet-core/release-notes/3.0/preview/api-diff/preview1/3.0-preview1_System.Threading.md
Ahson Khan e6b9c28c28
Add API diff between .NET Core 2.2 and .NET Core 3.0 preview1. (#2256)
* Add API diff between .NET Core 2.2 and .NET Core 3.0 preview1.

* Only compare ref assemblies within M.NetCore.App rather than all impl
assemblies from the repo.

* Remove Microsoft.* namespaces and update heading.
2019-01-28 21:02:57 -08:00

958 B

System.Threading

 namespace System.Threading {
-    public struct AsyncLocalValueChangedArgs<T>
+    public readonly struct AsyncLocalValueChangedArgs<T>
     public readonly struct CancellationToken {
+        public CancellationTokenRegistration UnsafeRegister(Action<object> callback, object state);
     }
     public readonly struct CancellationTokenRegistration : IDisposable, IEquatable<CancellationTokenRegistration> {
+        public ValueTask DisposeAsync();
+        public bool Unregister();
     }
+    public interface IThreadPoolWorkItem {
+        void Execute();
+    }
     public struct SpinWait {
+        public void SpinOnce(int sleep1Threshold);
     }
     public static class ThreadPool {
+        public static bool UnsafeQueueUserWorkItem(IThreadPoolWorkItem callBack, bool preferLocal);
     }
     public sealed class Timer : MarshalByRefObject, IDisposable {
+        public ValueTask DisposeAsync();
     }
 }