Operators: Observables from functionals (Action0, Func0, Runnable, Calla...#622
Closed
akarnokd wants to merge 1 commit intoReactiveX:masterfrom
Closed
Operators: Observables from functionals (Action0, Func0, Runnable, Calla...#622akarnokd wants to merge 1 commit intoReactiveX:masterfrom
akarnokd wants to merge 1 commit intoReactiveX:masterfrom
Conversation
|
RxJava-pull-requests #556 FAILURE |
Member
Author
|
9 threads were busy with something else... |
Member
|
Right now I'd like to pass on adding these as it adds to the surface area of the API without strong reason. These are all wrapper methods of I'm not yet convinced that they are globally useful and worth increasing the already huge |
Member
Author
|
How about introducing ObservableEx like Rx.NET had once? This way, these tools don't get lost but are not part of core. |
benjchristensen
added a commit
to benjchristensen/RxJava
that referenced
this pull request
Dec 27, 2013
Home for async utility functions with juc.Future, Actions, Functions etc that don’t need to be in rxjava-core. As per discussions at: - ReactiveX#646 (comment) - ReactiveX#645 (comment) - ReactiveX#622 (comment)
Member
|
Merge these into #696 instead. |
benjchristensen
added a commit
to benjchristensen/RxJava
that referenced
this pull request
Dec 30, 2013
Home for async utility functions with juc.Future, Actions, Functions etc that don’t need to be in rxjava-core. As per discussions at: - ReactiveX#646 (comment) - ReactiveX#645 (comment) - ReactiveX#622 (comment)
benjchristensen
added a commit
to benjchristensen/RxJava
that referenced
this pull request
Dec 30, 2013
Home for async utility functions with juc.Future, Actions, Functions etc that don’t need to be in rxjava-core. As per discussions at: - ReactiveX#646 (comment) - ReactiveX#645 (comment) - ReactiveX#622 (comment)
benjchristensen
added a commit
to benjchristensen/RxJava
that referenced
this pull request
Dec 30, 2013
Home for async utility functions with juc.Future, Actions, Functions etc that don’t need to be in rxjava-core. As per discussions at: - ReactiveX#646 (comment) - ReactiveX#645 (comment) - ReactiveX#622 (comment)
benjchristensen
added a commit
to benjchristensen/RxJava
that referenced
this pull request
Dec 30, 2013
Home for async utility functions with juc.Future, Actions, Functions etc that don’t need to be in rxjava-core. As per discussions at: - ReactiveX#646 (comment) - ReactiveX#645 (comment) - ReactiveX#622 (comment)
benjchristensen
added a commit
to benjchristensen/RxJava
that referenced
this pull request
Dec 30, 2013
Home for async utility functions with juc.Future, Actions, Functions etc that don’t need to be in rxjava-core. As per discussions at: - ReactiveX#646 (comment) - ReactiveX#645 (comment) - ReactiveX#622 (comment)
benjchristensen
added a commit
to ReactiveX/RxJavaAsyncUtil
that referenced
this pull request
Aug 29, 2014
Home for async utility functions with juc.Future, Actions, Functions etc that don’t need to be in rxjava-core. As per discussions at: - ReactiveX/RxJava#646 (comment) - ReactiveX/RxJava#645 (comment) - ReactiveX/RxJava#622 (comment)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
...ble)
I've created 4 operators that turn ordinary action/function calls into Observables, but unlike start and Async, the functions are called on each subscription instead of only once. They can be thought of a more generalized from(T value). Each method is named according to the accepted type to avoid overload issues with Java 8 & various dynamic languages.
The 4 additional overloads lets the user specify the scheduler where the function is called. By default, the functions are called on the threadPoolForComputation.
I don't know if there are Rx.NET equivalents of these (or they ever existed).