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 SingleK wrapper for RxJava Single #857

Merged
merged 6 commits into from
May 25, 2018

Conversation

JorgeCastilloPrz
Copy link
Member

@JorgeCastilloPrz JorgeCastilloPrz commented May 24, 2018

Fixes #856

  • Added SingleK
  • Added instances
  • Added some tests including law tests for the instances.

@codecov
Copy link

codecov bot commented May 24, 2018

Codecov Report

Merging #857 into master will increase coverage by 0.22%.
The diff coverage is 85%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #857      +/-   ##
============================================
+ Coverage     44.64%   44.86%   +0.22%     
- Complexity      623      628       +5     
============================================
  Files           298      300       +2     
  Lines          7669     7709      +40     
  Branches        832      834       +2     
============================================
+ Hits           3424     3459      +35     
- Misses         3942     3947       +5     
  Partials        303      303
Impacted Files Coverage Δ Complexity Δ
.../src/main/kotlin/arrow/effects/SingleKInstances.kt 81.25% <81.25%> (ø) 0 <0> (?)
...fects-rx2/src/main/kotlin/arrow/effects/SingleK.kt 87.5% <87.5%> (ø) 5 <5> (?)
...tics/src/main/kotlin/arrow/optics/instances/map.kt 94.11% <0%> (+2.94%) 0% <0%> (ø) ⬇️

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 418d367...2f28338. Read the comment docs.

}
}

// FIXME(paco): remove if this hasn't triggered in a while - 26 Jan 18
Copy link
Member

Choose a reason for hiding this comment

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

lol is this in both Observable and Flowable? I wouldn't have it on by default.

Copy link
Member Author

@JorgeCastilloPrz JorgeCastilloPrz May 24, 2018

Choose a reason for hiding this comment

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

Yeah was copypasta, removed now from the 3 wrappers, since it has not been triggered since January.

Copy link
Member

@pakoito pakoito left a comment

Choose a reason for hiding this comment

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

I'd add the Single example to the documentation, the same way Flowable is just mentioned.

@JorgeCastilloPrz
Copy link
Member Author

Back to you @pakoito

Copy link
Member

@pakoito pakoito left a comment

Choose a reason for hiding this comment

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

To p'alante

test.assertTerminated().assertComplete().assertNoErrors().assertValue(0)
}

"Multi-thread Observables should run on their required threads" {
Copy link
Member

Choose a reason for hiding this comment

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

*Singles

@JorgeCastilloPrz JorgeCastilloPrz merged commit cab1fa7 into master May 25, 2018
@JorgeCastilloPrz JorgeCastilloPrz deleted the add-wrapper-for-rxjava-single branch May 25, 2018 14:11
RawToast pushed a commit to RawToast/kategory that referenced this pull request Jul 18, 2018
* add instances and law tests

* generate complete info graph

* remove shouldNotBe fallback to logs from ObservableK, FlowableK and SingleK tests

* add SingleK to a couple of examples in docs, including Async based polymorphic program sample
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants