From 6ab4e8952ed35952e3771e3d5b246184681cd204 Mon Sep 17 00:00:00 2001 From: Emil Koutanov Date: Mon, 29 Jan 2024 09:43:12 +1100 Subject: [PATCH] Minor --- Actors/Troupe.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)