Skip to content

Commit

Permalink
Minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
tippmar-nr committed Dec 20, 2024
1 parent 7c5534e commit 5c4429d
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/Agent/NewRelic/Agent/Core/Utilities/AsyncHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);

/// <summary>
/// Safely executes an async method synchronously.
/// Safely executes an async method synchronously.
/// </summary>
/// <typeparam name="TReturn"></typeparam>
/// <param name="task"></param>
Expand Down

0 comments on commit 5c4429d

Please sign in to comment.