csharpsquid:S3168 on Timer callback

Template for a good bug report, formatted with Markdown:

  • version used: Community Edition Version 9.2.4 (build 50792)
  • async void Timer callback is not recognised as an event callback
  ...
  _timer = new System.Threading.Timer(RunOnceAsync);
}
private async void RunOnceAsync(object? _)
{
  try
  {
    ...

Hello @ExtendedSpice and welcome to our community.

Thanks for reporting this false positive. I can confirm the issue.
I opened an issue in our repository, you can track the progress there.

All the best,
Čaba

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.