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 Single.fromCallable() #3418

Merged
merged 1 commit into from Oct 9, 2015

Conversation

artem-zinnatullin
Copy link
Contributor

Second part of #3154.

@akarnokd I'd like to reuse Observable.fromCallable() but didn't find apropriate way to do it: Observable.fromCallable().toSingle() is not best option, if you have some thoughts on this — please share them.

@akarnokd
Copy link
Member

akarnokd commented Oct 8, 2015

👍 I'm not too keen on reusing but the most complicated operators for Single.

@akarnokd akarnokd added this to the 1.0.x milestone Oct 8, 2015
* the type of the item emitted by the {@link Single}.
* @return a {@link Single} whose {@link Observer}s' subscriptions trigger an invocation of the given function.
*/
public static <T> Single<T> fromCallable(final Callable<? extends T> func) {
Copy link
Member

Choose a reason for hiding this comment

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

This should start out as experimental unless the RxJava contributors want to fast-track this.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added @Experimental

@abersnaze
Copy link
Contributor

@artem-zinnatullin rebase please.

@artem-zinnatullin
Copy link
Contributor Author

@abersnaze rebased, I'll rebase one PR at a time, since they're all conflict with each other.

abersnaze added a commit that referenced this pull request Oct 9, 2015
@abersnaze abersnaze merged commit 1db23ee into ReactiveX:1.x Oct 9, 2015
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.

None yet

3 participants