ali-ahnaf / ali-ahnaf/echo-of-thoughts-aspnet

Q: IAsyncEnumerable<Story> vs Task<IEnumerable<Story>>

未关闭
#4 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
question
主要语言
C#
星标
0
派生
0
PR 合并指标
30 天内没有已合并 PR

描述

`IAsyncEnumerable`: It allows for efficient and asynchronous retrieval of elements, one at a time, without loading the entire collection into memory. It is useful when dealing with large or potentially infinite collections of data.

`Task>`: It is typically used when you want to perform an operation asynchronously and retrieve the entire collection of results once the operation is completed.

the 2nd option is suitable for my current context right?

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。