Commit 8692ebfd authored by Savorboard's avatar Savorboard

Optimizing threading pool issues

parent 7cebd84f
......@@ -32,8 +32,8 @@ namespace DotNetCore.CAP.Processor
_sender = sender;
_executor = executor;
Task.Factory.StartNew(Sending);
Task.Factory.StartNew(Processing);
Task.Factory.StartNew(Sending, _cts.Token, TaskCreationOptions.LongRunning, TaskScheduler.Default);
Task.Factory.StartNew(Processing, _cts.Token, TaskCreationOptions.LongRunning, TaskScheduler.Default);
}
public void EnqueueToPublish(CapPublishedMessage message)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment