Remove System.Linq.Async dependency from src assemblies (#1069)

We shouldn't be shipping any more dependencies on this package, as it's becoming legacy, replaced by System.Linq.AsyncEnumerable.

We'll eventually want to replace it with System.Linq.AsyncEnumerable in all tests/samples, too, but that's hard to do until SK updates to use S.L.AsyncEnumerable once its 10.0.0 version is released. I did remove the package reference from tests/samples where it's not needed.
This commit is contained in:
Stephen Toub
2025-10-01 17:17:21 +00:00
committed by GitHub
parent ae4cb7d44a
commit 0fef277c70
25 changed files with 14 additions and 27 deletions
@@ -16,8 +16,10 @@ internal sealed class AsyncStreamingUpdateCollectionResult : AsyncCollectionResu
public override ContinuationToken? GetContinuationToken(ClientResult page) => null;
public override IAsyncEnumerable<ClientResult> GetRawPagesAsync() =>
AsyncEnumerable.Repeat(ClientResult.FromValue(this._updates, new StreamingUpdatePipelineResponse(this._updates)), 1);
public override async IAsyncEnumerable<ClientResult> GetRawPagesAsync()
{
yield return ClientResult.FromValue(this._updates, new StreamingUpdatePipelineResponse(this._updates));
}
protected override IAsyncEnumerable<StreamingChatCompletionUpdate> GetValuesFromPageAsync(ClientResult page)
{