mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2025-05-24 11:47:00 -04:00
Rename AsyncExtensions
to AsyncCollectionExtensions
This commit is contained in:
parent
a4111c184e
commit
d8315c7827
1 changed files with 3 additions and 3 deletions
|
@ -4,9 +4,9 @@ using System.Threading.Tasks;
|
|||
|
||||
namespace DiscordChatExporter.Core.Utils.Extensions;
|
||||
|
||||
public static class AsyncExtensions
|
||||
public static class AsyncCollectionExtensions
|
||||
{
|
||||
private static async ValueTask<IReadOnlyList<T>> AggregateAsync<T>(
|
||||
private static async ValueTask<IReadOnlyList<T>> CollectAsync<T>(
|
||||
this IAsyncEnumerable<T> asyncEnumerable)
|
||||
{
|
||||
var list = new List<T>();
|
||||
|
@ -19,5 +19,5 @@ public static class AsyncExtensions
|
|||
|
||||
public static ValueTaskAwaiter<IReadOnlyList<T>> GetAwaiter<T>(
|
||||
this IAsyncEnumerable<T> asyncEnumerable) =>
|
||||
asyncEnumerable.AggregateAsync().GetAwaiter();
|
||||
asyncEnumerable.CollectAsync().GetAwaiter();
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue