Skip to content
This repository has been archived by the owner on Feb 24, 2021. It is now read-only.

Removed (almost) all Try examples in documentation/comment blocks #69

Merged
merged 5 commits into from
Mar 3, 2020

Conversation

danimontoya
Copy link
Contributor

Original PR can be seen here.

What version are you currently using? 0.10

What would you like to see?
The documentation includes Try examples. Since Try is deprecated, these examples should be removed (or transitioned to Either examples) to prevent confusion.

Copy link
Member

@aballano aballano left a comment

Choose a reason for hiding this comment

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

only nits, gogogo 🚀

val (two) = Try { one + one }
Either.fx<Throwable, Int> {
val (one) = Either.right(1)
val (two) = Either.right(one+one)
Copy link
Member

Choose a reason for hiding this comment

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

nit:

Suggested change
val (two) = Either.right(one+one)
val (two) = Either.right(one + one)

FlowableK.monad().fx.monad {
(1..50000).fold(just(0)) { acc: Kind<ForFlowableK, Int>, x: Int ->
just(acc.bind() + 1)
}.bind()
}.fix().flowable.blockingFirst()
}
}.attempt()
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
}.attempt()
}.attempt()..unsafeRunSync()

@aballano aballano merged commit 129b8ad into master Mar 3, 2020
@aballano aballano deleted the dm-remove-try-fx branch March 3, 2020 14:20
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants