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 6760a41 commit 8328228Copy full SHA for 8328228
src/Serilog.Sinks.Async/BufferedQueueSink.cs
@@ -49,9 +49,6 @@ private void EnsureConsumerStarted()
49
StartConsumer(logEvent => _sink.Emit(logEvent));
50
}
51
52
- //TODO: To save on multiple threads in the thread pool, move this method to super class,
53
- //that can execute a single thread and consume all instances of this sink in same Task.Run()
54
- //See: Concurrency book, where he runs several tasks concurrently
55
public void StartConsumer(Action<LogEvent> action)
56
{
57
Task.Run(async () =>
@@ -70,4 +67,4 @@ public void StartConsumer(Action<LogEvent> action)
70
67
});
71
68
72
69
73
-}
+}
0 commit comments