|
|
|
|
|
by torginus
1461 days ago
|
|
Not really. Tasks can be zero garbage, IEnumerable cannot. A 'task' in C# is just something that has a GetAwaiter() method, which gives you a callback on when something has happened. This is how ValueTask is implemented in newer .NET versions which is a struct, but you can roll your own. |
|