Skip to content

Pass CancellationToken to HttpContent.ReadAsStreamAsync for .Net 5.0 #770

Closed

Description

A new overload for HttpContent.ReadAsStreamAsync is introduced in .Net 5.0 which gets CancellationToken. Should it be used?

using var destinationStream = await destinationResponse.Content.ReadAsStreamAsync();

using var destinationResponseStream = await destinationResponseContent.ReadAsStreamAsync();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

Type: IdeaThis issue is a high-level idea for discussion.

Type

No type

Projects

  • Status

    ✅ Done

Relationships

None yet

Development

No branches or pull requests

Issue actions