Any disadvantage to creating a class which uses methods which return a Task<T> but are synchronous methods over methods returning T
问题 Let's say we have this class - MyClass MyClass has methods that convert different types of lists to XDocuments As an example we'll just look at one method, Convert I could write this method as: public XDocument Convert<T>(IList<T> myList) { XDocument doc = new XDocument("root"); //Do some synchronous work return doc; } Or I could write it like the following: public Task<XDocument> Convert<T>(IList<T> myList) { XDocument doc = new XDocument("root"); //Do some synchronous work return Task