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

RxJS Observable support #1

Open
LAJW opened this issue Jan 6, 2017 · 0 comments
Open

RxJS Observable support #1

LAJW opened this issue Jan 6, 2017 · 0 comments

Comments

@LAJW
Copy link
Owner

LAJW commented Jan 6, 2017

I want to add support for custom collections/streams (Observable, fetch, etc.). Some can be built-in as optional dependencies, but there should be also a way for the user to add custom overloads.

Something like this:

const reduce = require("co-reduce-any").overload([
  [
    collection => collection instanceof Observable,
    (observable, generator) => { ... }
  ],
  [ secondTypeCheck, secondOverload ],
  ...
])

So when reduce() is issued, before jumping straight to enumerating keys in objects, we would first check if there was defined a custom overload.

I'd like to first take care of Fugazi, so if anyone wants to do this, fork ahead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant