Skip to content
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

Merged
merged 3 commits into from
Jul 10, 2018

Conversation

UMFsimke
Copy link
Contributor

@UMFsimke UMFsimke commented Jul 8, 2018

Here are marbles for delay operator in #5788

Please 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.

@@ -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="">
Copy link
Member

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="">
Copy link
Member

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="">
Copy link
Member

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.

Copy link
Member

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="">
Copy link
Member

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.

@akarnokd akarnokd added this to the 2.2 milestone Jul 8, 2018
@codecov
Copy link

codecov bot commented Jul 8, 2018

Codecov Report

Merging #6076 into 2.x will increase coverage by <.01%.
The diff coverage is n/a.

Impacted file tree graph

@@             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
Impacted Files Coverage Δ Complexity Δ
src/main/java/io/reactivex/Single.java 100% <ø> (ø) 146 <0> (ø) ⬇️
...l/operators/observable/ObservableFlatMapMaybe.java 84.96% <0%> (-4.58%) 2% <0%> (ø)
...ernal/operators/flowable/FlowableFlatMapMaybe.java 91.3% <0%> (-4.35%) 2% <0%> (ø)
...a/io/reactivex/internal/util/QueueDrainHelper.java 97.22% <0%> (-2.78%) 56% <0%> (-2%)
...rnal/operators/observable/ObservableSwitchMap.java 94.68% <0%> (-1.6%) 3% <0%> (ø)
...internal/operators/flowable/FlowableSwitchMap.java 95.28% <0%> (-1.42%) 3% <0%> (ø)
...ternal/operators/completable/CompletableMerge.java 96.42% <0%> (-1.2%) 2% <0%> (ø)
...java/io/reactivex/processors/UnicastProcessor.java 98.8% <0%> (-1.2%) 67% <0%> (-1%)
...perators/mixed/ObservableSwitchMapCompletable.java 98.94% <0%> (-1.06%) 3% <0%> (ø)
...nternal/operators/parallel/ParallelSortedJoin.java 94.89% <0%> (-0.73%) 2% <0%> (ø)
... and 19 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c8a9852...627af51. Read the comment docs.

@UMFsimke
Copy link
Contributor Author

UMFsimke commented Jul 8, 2018

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="">
Copy link
Member

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="">
Copy link
Member

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.

@UMFsimke
Copy link
Contributor Author

UMFsimke commented Jul 9, 2018

I've updated colors. Please take a look when you have time. Thanks!

@UMFsimke
Copy link
Contributor Author

UMFsimke commented Jul 9, 2018

Thanks, updated

@akarnokd akarnokd merged commit fd76594 into ReactiveX:2.x Jul 10, 2018
@UMFsimke UMFsimke deleted the SingleDelayOperatorMarbles branch July 15, 2018 23:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants