-
Notifications
You must be signed in to change notification settings - Fork 7.6k
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
Add marble diagrams to the Single.delay method #6076
Conversation
@@ -1996,6 +1998,8 @@ | |||
|
|||
/** | |||
* Delays the emission of the success or error signal from the current Single by the specified amount. | |||
* <p> | |||
* <img width="640" height="457" src="https://raw.githubusercontent.com/UMFsimke/RxJava/Images/Images/Delay.png" alt=""> |
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.
It would be great if you indicated the delayError: true
case.
@@ -1978,6 +1978,8 @@ | |||
/** | |||
* Delays the emission of the success signal from the current Single by the specified amount. | |||
* An error signal will not be delayed. | |||
* <p> | |||
* <img width="640" height="457" src="https://raw.githubusercontent.com/UMFsimke/RxJava/Images/Images/Delay.png" alt=""> |
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.
It would be great if you indicated errors are not delayed with this overload.
@@ -2017,6 +2021,8 @@ | |||
/** | |||
* Delays the emission of the success signal from the current Single by the specified amount. | |||
* An error signal will not be delayed. | |||
* <p> | |||
* <img width="640" height="457" src="https://raw.githubusercontent.com/UMFsimke/RxJava/Images/Images/DelayScheduler.png" alt=""> |
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.
It would be great if you indicated errors are not delayed with this overload.
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.
Please also color the bottom arrows as orange to indicate they get executed on the provided scheduler.
@@ -2039,6 +2045,8 @@ | |||
|
|||
/** | |||
* Delays the emission of the success or error signal from the current Single by the specified amount. | |||
* <p> | |||
* <img width="640" height="457" src="https://raw.githubusercontent.com/UMFsimke/RxJava/Images/Images/DelayScheduler.png" alt=""> |
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.
It would be great if you indicated the delayError: true case.
Codecov Report
@@ Coverage Diff @@
## 2.x #6076 +/- ##
============================================
+ Coverage 98.26% 98.27% +<.01%
- Complexity 6192 6193 +1
============================================
Files 666 666
Lines 44806 44806
Branches 6206 6206
============================================
+ Hits 44028 44031 +3
- Misses 236 237 +1
+ Partials 542 538 -4
Continue to review full report at Codecov.
|
PR is updated with representation of error events. |
@@ -2017,6 +2021,8 @@ | |||
/** | |||
* Delays the emission of the success signal from the current Single by the specified amount. | |||
* An error signal will not be delayed. | |||
* <p> | |||
* <img width="640" height="457" src="https://raw.githubusercontent.com/UMFsimke/RxJava/Images/Images/DelayScheduler.png" alt=""> |
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.
Please also color the bottom arrows as orange to indicate they get executed on the provided scheduler.
@@ -2039,6 +2045,8 @@ | |||
|
|||
/** | |||
* Delays the emission of the success or error signal from the current Single by the specified amount. | |||
* <p> | |||
* <img width="640" height="457" src="https://raw.githubusercontent.com/UMFsimke/RxJava/Images/Images/DelaySchedulerIncludingError.png" alt=""> |
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.
Please also color the bottom arrows as orange to indicate they get executed on the provided scheduler.
I've updated colors. Please take a look when you have time. Thanks! |
Thanks, updated |
Here are marbles for
delay
operator in #5788Please let me know if I need to change anything on the diagram itself. If not, please send me URL when you upload image within the project so I can change URL for the marble in the PR.