Skip to content

Commit 419685d

Browse files
committed
Simplifies ProcessAsync method
1 parent 7808b8c commit 419685d

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/Exceptionless/Queue/DefaultEventQueue.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,7 @@ public void Enqueue(Event ev) {
4646
}
4747

4848
public Task ProcessAsync() {
49-
return Task.Factory.StartNew(
50-
() => {
51-
Process().ConfigureAwait(false).GetAwaiter().GetResult();
52-
});
49+
return Task.Run(() => Process());
5350
}
5451

5552
public Task Process() {

0 commit comments

Comments
 (0)