Expose generic UnsafeQueueUserWorkItem (#21125)
authorStephen Toub <stoub@microsoft.com>
Wed, 21 Nov 2018 00:52:08 +0000 (19:52 -0500)
committerGitHub <noreply@github.com>
Wed, 21 Nov 2018 00:52:08 +0000 (19:52 -0500)
src/System.Private.CoreLib/src/System/Threading/ThreadPool.cs

index 564db93..5026003 100644 (file)
@@ -1326,8 +1326,7 @@ namespace System.Threading
             return true;
         }
 
-        // TODO: https://github.com/dotnet/corefx/issues/32547. Make public.
-        internal static bool UnsafeQueueUserWorkItem<TState>(Action<TState> callBack, TState state, bool preferLocal)
+        public static bool UnsafeQueueUserWorkItem<TState>(Action<TState> callBack, TState state, bool preferLocal)
         {
             if (callBack == null)
             {