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

Func0 can transparently implement java.util.concurrent.Callable. #1003

Merged
merged 1 commit into from
Mar 31, 2014

Conversation

rickbw
Copy link
Contributor

@rickbw rickbw commented Mar 31, 2014

This change doesn't change the API at all for users of Func0, but it makes all Func0 objects immediately reusable with any JDK API that accepts Callables. For example, a Func0 can now be submitted directly to an ExecutorService for asynchronous execution. It also allows the elimination of a small amount of redundant code within RxJava itself.

This change doesn't change the API at all for users of Func0, but it makes all Func0 objects immediately reusable with any JDK API that accepts Callables. For example, a Func0 can now be submitted directly to an ExecutorService for asynchronous execution. It also allows the elimination of a small amount of redundant code within RxJava itself.
@benjchristensen
Copy link
Member

Looks like a fine change ... anyone else have comments on this? /cc @akarnokd

@akarnokd
Copy link
Member

Fine with me.

@benjchristensen
Copy link
Member

Thanks

benjchristensen added a commit that referenced this pull request Mar 31, 2014
Func0 can transparently implement java.util.concurrent.Callable.
@benjchristensen benjchristensen merged commit 8e242a4 into ReactiveX:master Mar 31, 2014
@cloudbees-pull-request-builder

RxJava-pull-requests #933 FAILURE
Looks like there's a problem with this pull request

@rickbw rickbw deleted the callable-func0 branch April 1, 2014 23:24
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.

None yet

4 participants