How to make a IEnumerable method parallel method
问题 Following to this post, I want parallelize this method : public IEnumerable<string> GetAllLogs(IEnumerable<IComputer> computers) { foreach (var cpt in computers) { foreach (var log in cpt.GetLogs()) { yield return log; } } } I want the method "yield returns" a log when one of the method GetLogs is finished. If I have 4 computers which returns : Computer 01 : "a", "b", "c", "d", "e" Computer 02 : "1", "2", "3", "4", "5" Computer 03 : "alpha", "beta", "gamma", "delta", "epsilon" Computer 04 :