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

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

Offen
#4 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
question
Vorherrschende Sprache
C#
Sterne
0
Forks
0
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

`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?

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.