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

Operations to rewrite #1060

Closed
57 tasks done
akarnokd opened this issue Apr 22, 2014 · 9 comments
Closed
57 tasks done

Operations to rewrite #1060

akarnokd opened this issue Apr 22, 2014 · 9 comments

Comments

@akarnokd
Copy link
Member

Core:

contrib-string

  • Optionally: refactor operators into separate classes. No changes.

contrib-async-util, PR #1101

  • StartFuture -> just rename
  • OperationFromFunctionals.InvokeAsync (w/ OnSubscribe)
  • ForEachFuture -> just rename
  • DeferFuture -> just rename

contrib-math, PR #1125

  • Average (w/ lift); may keep current op-composition
    • int, long, float, double; w/ extractor function
  • Min, MinBy, Max, MaxBy (w/ lift); may keep current op-composition
  • Sum (w/ lift); may keep current op-composition

contrib-computation-expressions, PR #1129

  • IfThen (w/ OnSubscribe)
  • SwitchCase (w/ OnSubscribe)
  • DoWhile, WhileDo (w/ OnSubscribe)

contrib-joins

This was referenced Apr 22, 2014
@akarnokd
Copy link
Member Author

I'm working on Buffer but still have to hunt down some test failures.

@DavidMGross
Copy link
Collaborator

Do we expect any of the following proposed operators to be revived?

  • chunkify
  • deferCancellableFuture (rxjava-async)
  • doWhile
  • forEachFuture (BlockingObservable)
  • forIterable
  • fromCancellableFuture (rxjava-async)
  • fromFuture
  • generate
  • generateAbsoluteTime
  • ifThen
  • startCancellableFuture (rxjava-async)
  • switchCase
  • whileDo

On Tue, Apr 22, 2014 at 7:50 AM, akarnokd notifications@github.com wrote:

I'm working on Buffer but still have to hunt down some test failures.


Reply to this email directly or view it on GitHubhttps://github.com//issues/1060#issuecomment-41049048
.

David M. Gross
PLP Consulting

@akarnokd
Copy link
Member Author

ifThen, switchCase, doWhile, whileDo are in contrib-computation-expressions

I'm not sure about the CancelableFuture variants as they conceptionally didn't really work in Java (i.e., attempt to mirror C# cancellation tokens)

chunkify, generate, generateAbsoluteTIme, forIterable - probably not.

While we are at it, I have some trouble with buffer(Func0<Observable>) variant. I would expect the returned Observable to supply multiple "absolute" boundary events, but the current implementation calls for a new Observable whenever a previous one fired an event, causing an exponential explosion ChunkedOperation L515. The reason seems to be to produce a relative windowing in the associated test method.

@benjchristensen
Copy link
Member

Before we proceed, please review what I wrote at #1001 (comment) and let's agree upon the coding principles.

@benjchristensen
Copy link
Member

Do we expect any of the following proposed operators to be revived?

I doubt it. Let's get the current operators (as of 0.18) polished for 1.0. New operators, or matured ones from the contrib modules, can come over in 1.x releases if found to be commonly needed.

The only one not on the list I can think of needing to re-add is the groupBy overload that takes a selector. It was unceremoniously dropped a few releases ago when I did refactoring.

This was referenced Apr 23, 2014
@akarnokd
Copy link
Member Author

I skipped combineLatest as there was PR #1043 not long ago; I wonder if @vigdorchik still wants to implement it.

@vigdorchik
Copy link
Contributor

@akarnokd sorry, I'm out of context here.

@akarnokd
Copy link
Member Author

@zsxwing I'll do Window

@akarnokd
Copy link
Member Author

akarnokd commented May 6, 2014

All done and merged.

@akarnokd akarnokd closed this as completed May 6, 2014
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

No branches or pull requests

4 participants