From 5c4429df4f99ce1f7ba2068d79313553e26f4f43 Mon Sep 17 00:00:00 2001
From: Marty Tippin <120425148+tippmar-nr@users.noreply.github.com>
Date: Fri, 20 Dec 2024 16:09:55 -0600
Subject: [PATCH] Minor cleanup
---
.../NewRelic/Agent/Core/Utilities/AsyncHelper.cs | 11 +++++------
1 file changed, 5 insertions(+), 6 deletions(-)
diff --git a/src/Agent/NewRelic/Agent/Core/Utilities/AsyncHelper.cs b/src/Agent/NewRelic/Agent/Core/Utilities/AsyncHelper.cs
index 5c3c72b35..d7315a9d9 100644
--- a/src/Agent/NewRelic/Agent/Core/Utilities/AsyncHelper.cs
+++ b/src/Agent/NewRelic/Agent/Core/Utilities/AsyncHelper.cs
@@ -8,16 +8,15 @@
namespace NewRelic.Agent.Core.Utilities
{
+ // Borrowed from https://stackoverflow.com/a/56928748/2078975
+ [NrExcludeFromCodeCoverage]
public class AsyncHelper
{
- private static readonly TaskFactory _taskFactory = new
- TaskFactory(CancellationToken.None,
- TaskCreationOptions.None,
- TaskContinuationOptions.None,
- TaskScheduler.Default);
+ private static readonly TaskFactory _taskFactory =
+ new(CancellationToken.None, TaskCreationOptions.None, TaskContinuationOptions.None, TaskScheduler.Default);
///
- /// Safely executes an async method synchronously.
+ /// Safely executes an async method synchronously.
///
///
///