IGNITE-6231 .NET: Do not start a new thread explicitly in Flusher.RunThread
authorPavel Tupitsyn <ptupitsyn@apache.org>
Mon, 2 Oct 2017 13:09:04 +0000 (16:09 +0300)
committerPavel Tupitsyn <ptupitsyn@apache.org>
Mon, 2 Oct 2017 13:09:04 +0000 (16:09 +0300)
modules/platforms/dotnet/Apache.Ignite.Core/Impl/Datastream/DataStreamerImpl.cs

index fb2df01..96b24ab 100644 (file)
@@ -858,7 +858,7 @@ namespace Apache.Ignite.Core.Impl.Datastream
             /// </summary>
             public void RunThread()
             {
-                new Thread(Run).Start();
+                Task.Factory.StartNew(Run);
             }
         }