You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[core] Support NodeJS Stream cancellation - v2 (#33385)
### Packages impacted by this PR
@azure-rest/core-client, and @azure/core-sse
### Issues associated with this PR
#33334
### Describe the problem that is addressed by this PR
The type of NodeJS streams used in our core doesn't support cancellation
even though the actual runtime object does support it. For context, this
type is being used by NodeJS to type ["old style streams" that existed
before NodeJS
v0.10](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/3a17ff00600a50db103774cfb818685c5677e815/types/node/stream.d.ts#L449),
therefore, it doesn't have the `destroy` method.
### What are the possible designs available to address the problem? If
there are more than one possible design, why was the one in this PR
chosen?
A few options have been already discussed in the issue. .
### Are there test cases added in this PR? _(If not, why?)_
No, the changes are types only
### Provide a list of related PRs _(if any)_
N/A
### Command used to generate this PR:**_(Applicable only to SDK release
request PRs)_
### Checklists
- [x] Added impacted package name to the issue description
- [ ] Does this PR needs any fixes in the SDK Generator?** _(If so,
create an Issue in the
[Autorest/typescript](https://github.com/Azure/autorest.typescript)
repository and link it here)_
- [x] Added a changelog (if necessary)
0 commit comments