I have the following method:
public async IEnumerable<string> GetListDriversAsync()
{
var drives = await graphClient.Drive.Root.Children.Request().GetAsync();
foreach (var d in drives)
yield return d.ToString();
}
But compiler error says:
"The return type of an async must be void, Task or Task
<T>
"
How do I return IEnumerable when the method is async?