0

If I have a function with one await after it goes return, should I just return a task without await?

async Task<T> F() {
   // some sync actions;
   
   var x = await F();
   return x;
}

Is this better?

Task<T> F() {
    // some sync actions;

    return F();
}

Are two examples has the same behaviour?

Wootiae
  • 597
  • 1
  • 5
  • 16

0 Answers0