Skip to content

CRARCH0012 async void forbidden

  • Category: Architecture
  • Default severity: Error
  • Diagnostic ID: CRARCH0012

async void methods hide failures and cannot be awaited in regular flows.

Avoid async void methods outside event handlers

Change async void methods to async Task unless the method is an event handler.