* 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.
958 B
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();
}
}