Skip to content

Commit

Permalink
WIP tests
Browse files Browse the repository at this point in the history
  • Loading branch information
georgii-borovinskikh-sonarsource committed Nov 11, 2024
1 parent ccd15a9 commit 6b76dd4
Show file tree
Hide file tree
Showing 3 changed files with 487 additions and 591 deletions.
6 changes: 3 additions & 3 deletions src/Core/ThreadHandlingExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ public static Task RunOnBackgroundThread(this IThreadHandling threadHandling, Ac
syncMethod();
return Task.CompletedTask;
});
public static Task RunOnBackgroundThread(this IThreadHandling threadHandling, Func<Task> asyncMethod) => Task.FromResult(threadHandling.RunOnBackgroundThread(async () =>

public static Task RunOnBackgroundThread(this IThreadHandling threadHandling, Func<Task> asyncMethod) => threadHandling.RunOnBackgroundThread(async () =>
{
await asyncMethod();
return 0;
}));
});
}
Loading

0 comments on commit 6b76dd4

Please sign in to comment.