We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 04ca231 commit ff78430Copy full SHA for ff78430
src/Renci.SshNet/Abstractions/ThreadAbstraction.cs
@@ -36,9 +36,10 @@ public static void ExecuteThreadLongRunning(Action action)
36
/// <param name="action">The action to execute.</param>
37
public static void ExecuteThread(Action action)
38
{
39
+#if FEATURE_THREAD_THREADPOOL
40
if (action == null)
41
throw new ArgumentNullException("action");
-#if FEATURE_THREAD_THREADPOOL
42
+
43
System.Threading.ThreadPool.QueueUserWorkItem(o => action());
44
#elif FEATURE_THREAD_TAP
45
System.Threading.Tasks.Task.Run(action);
0 commit comments