4 ms·
The referencesource repository is only relevant if you are using the legacy .NET Framework. Modern .NET has a special case for passing a List<Task> and avoids t
by MarkSweep 2y ago
The referencesource repository is only relevant if you are using the legacy .NET Framework. Modern .NET has a special case for passing a List<Task> and avoids the allocation:
https://github.com/dotnet/runtime/blob/1f01bee2a41e0df97089fe083c09c59401437b49/src/libraries/System.Private.CoreLib/src/System/Threading/Tasks/Task.cs#L5947 https://github.com/dotnet/runtime/blob/1f01bee2a41e0df97089f...