-
Notifications
You must be signed in to change notification settings - Fork 534
Switches to positive wording for all rules besides 2.3, #200
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The head ref may contain hidden characters: "wip-197-positive-wording-\u221A"
Conversation
@@ -134,11 +134,11 @@ public interface Subscription { | |||
|
|||
| ID | Rule | | |||
| ------------------------- | ------------------------------------------------------------------------------------------------------ | | |||
| <a name="3.1">1</a> | `Subscription.request` or `Subscription.cancel` MUST not be called outside of its `Subscriber` context. A `Subscription` represents the unique relationship between a `Subscriber` and a `Publisher` [see [2.12](#2.12)] | | |||
| <a name="3.1">1</a> | `Subscription.request` and `Subscription.cancel` MUST only be called inside of its `Subscriber` context. A `Subscription` represents the unique relationship between a `Subscriber` and a `Publisher` [see [2.12](#2.12)] | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Switched from or
to and
here, since that was the intent. Is it clearer?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, this is better
182ab29
to
208e778
Compare
| <a name="3.4">4</a> | `Subscription.request` SHOULD NOT synchronously perform heavy computations that would impact its callers responsivity | | ||
| <a name="3.5">5</a> | `Subscription.cancel` MUST NOT synchronously perform heavy computations, MUST be idempotent and MUST be thread-safe | | ||
| <a name="3.3">3</a> | `Subscription.request` MUST only allow bounded recursion such as `Subscriber.onNext` -> `Subscription.request` -> `Subscriber.onNext` | | ||
| <a name="3.4">4</a> | `Subscription.request` SHOULD respect the responsivity of its caller by returning in a timely manner | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reason for the change here is to put the focus on the responsivity not on how "heavy" a computation may or may not be.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we keep “performing heavy computations” as an undesirable example in parentheses?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Footnote?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adding footnote
Very good initiative, avoiding negation makes the intent clearer in all those cases. |
LGTM |
18cde01
to
0632c9f
Compare
simply because I could not find appropriate wording. NOTE: No semantical changes have been made AFAICT. Harmonises the use of "call" and "invoke" to use "call" in all places where "invoke" was used. Adds a couple of footnotes to `Subscription` rules to keep the rules free from examples.
0632c9f
to
db71dfe
Compare
[<a name="footnote-3-1">1</a>] : As it is not feasibly reachable with current or forseen hardware within a reasonable amount of time (1 element per nanosecond would take 292 years) to fulfill a demand of 2^63-1. | ||
[<a name="footnote-3-1">1</a>] : An example for undesirable synchronous, open recursion would be `Subscriber.onNext` -> `Subscription.request` -> `Subscriber.onNext` -> …, as it very quickly would result in blowing the calling Thread´s stack. | ||
|
||
[<a name="footnote-3-2">2</a>] : Avoid heavy computations and other things that would stall the caller´s thread of execution |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rkuhn This good?
@reactive-streams/contributors Merging! |
Switches to positive wording for all rules besides 2.3,
simply because I could not find appropriate wording.
NOTE: No intentional semantical changes have been made. If you find issues, please, please, please let me know
Harmonises the use of "call" and "invoke" to use "call" in all places
where "invoke" was used.
@reactive-streams/contributors Could you please sanity check the changes proposed here? Thanks!
Please vote/comment before the 21st of January (as always, if you need more time let us know)