Skip to content

Editorial: Plumb reason through abort and cancel algorithm wrappers#1300

Merged
domenic merged 2 commits into
whatwg:mainfrom
jeremyroman:cancel-algorithm
Jan 10, 2024
Merged

Editorial: Plumb reason through abort and cancel algorithm wrappers#1300
domenic merged 2 commits into
whatwg:mainfrom
jeremyroman:cancel-algorithm

Conversation

@jeremyroman

@jeremyroman jeremyroman commented Dec 19, 2023

Copy link
Copy Markdown
Contributor

These are clearly intended to pass the reason through.

Fixes #1241, fixes #1273.


Preview | Diff

These are clearly intended to pass the reason through.

Fixes whatwg#1241, fixes whatwg#1273.
@jeremyroman

Copy link
Copy Markdown
Contributor Author

#1275 was previously sent for review in April but hasn't been merged. Merging that PR would be another option.

@jeremyroman

Copy link
Copy Markdown
Contributor Author

@domenic how would you (or another editor; it seems nontrivial to discover who) like to proceed?

@domenic

domenic commented Dec 20, 2023

Copy link
Copy Markdown
Member

That PR got stalled as the original person did not respond to review comments, so we can use this one!

Comment thread index.bs Outdated
1. Let |cancelAlgorithmWrapper| be an algorithm that runs these steps:
1. Let |result| be the result of running |cancelAlgorithm|, if |cancelAlgorithm| was given, or
1. Let |cancelAlgorithmWrapper| be an algorithm that runs these steps given |reason|:
1. Let |result| be the result of running |cancelAlgorithm| given |reason|, if |cancelAlgorithm| was given, or

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rewrap to 100 chars here and below

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CONTRIBUTING.md in this repository says the line limit in this specification is 120 chars, unlike other WHATWG repositories.

Should I comply with that right now, or do you still want this wrapped at 100?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like CONTRIBUTING.md is outdated; 100 would be best, please!

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@domenic domenic merged commit b0fc04d into whatwg:main Jan 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

cancelAlgorithmWrapper does not handle cancellation argument cancelAlgorithmWrapper in ReadableStream set up does not pass along the reason

2 participants