AsyncGenerator icon indicating copy to clipboard operation
AsyncGenerator copied to clipboard

Add option to generate async-over-sync virtual methods for their sync counterparts

Open hazzik opened this issue 7 years ago • 0 comments

class A
{
  public abstract void SomeMethod();
}

=>

partial class A
{
  // Pseudo code. All rules shall apply
  public virtual async Task SomeMethodAsync()
  {
    SomeMethod();
  }
}

Possible controlled by an option, but I would prefer this to be a default behavior.

hazzik avatar Jun 15 '18 13:06 hazzik