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 FutureToObservable #222

Merged
merged 1 commit into from Dec 26, 2016
Merged

Conversation

dhoepelman
Copy link
Collaborator

Added FutureToObservable so all Observable.from(T) overloads have a matching TToObservable

Renamed ObservableExtensions to the more descriptive IterableToObservable, which also makes the name in line with TryToObservable and OptionToObservable.

@dhoepelman dhoepelman force-pushed the future_to_observable branch 2 times, most recently from f7222b9 to fd936e7 Compare December 23, 2016 09:15
@dhoepelman dhoepelman changed the title Add FutureToObservable and rename ObservableExtensions Add FutureToObservable and rename ObservableExtensions to IterableToObservable Dec 23, 2016
Copy link
Collaborator

@samuelgruetter samuelgruetter left a comment

Choose a reason for hiding this comment

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

Nice, LGTM

@deprecated("Use IterableToObservable", "0.26.5")
type ObservableExtensions[T] = IterableToObservable[T]

implicit class IterableToObservable[T](val iterable: Iterable[T]) extends AnyVal {
Copy link
Member

Choose a reason for hiding this comment

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

This actually will break binary compatibility. It's better to keep the class name and the parameter name because I think this implicit may be one of the most popular APIs.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Ah oops, didn't think of binary comp

@dhoepelman dhoepelman changed the title Add FutureToObservable and rename ObservableExtensions to IterableToObservable Add FutureToObservable Dec 26, 2016
@dhoepelman
Copy link
Collaborator Author

@zsxwing Removed the ObservableExtensions rename from the PR

@zsxwing
Copy link
Member

zsxwing commented Dec 26, 2016

LGTM. Thanks!

@zsxwing zsxwing merged commit b511538 into ReactiveX:0.x Dec 26, 2016
@dhoepelman dhoepelman deleted the future_to_observable branch August 6, 2019 16:09
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

3 participants