Frage

I have some doubts about the design of C#'s upcoming async/await feature.

  1. The convenience of attaching the new mechanism to Task<T>
  2. I think is better to use async substituting the await keyword. For expaple: var result = async GetResultAsync();
  3. The mechanism to cancel a ongoing async operation using a token is not as elegant as I feel it could be.

Async/away is a great feature, but I think it's not as well designed as LINQ. Also, I feel the desing team is dangerously pleased with the current design; and might not take community feedback into account.

What do you think?

Keine korrekte Lösung

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top