diff --git a/Actors/Troupe.cs b/Actors/Troupe.cs index 84beb2b..837d173 100644 --- a/Actors/Troupe.cs +++ b/Actors/Troupe.cs @@ -43,9 +43,9 @@ public Task DrainAny() return Task.WhenAny(DrainTasks()); } - private Task[] DrainTasks() + private IEnumerable DrainTasks() { - return members.Select(x => x.Drain()).ToArray(); + return members.Select(member => member.Drain()); } public static Troupe Of(IEnumerable members)