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

obfuscate observable example with functional programming #47

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jedwards1211
Copy link
Contributor

this is sort of a joke but I just wanted to demonstrate that the code can be shortened, assuming there are no extra arguments in observables I don't know about.

And illustrate how it's almost exactly the same API as the Observable constructor but with an async function.

this is sort of a joke but I just wanted to demonstrate that the code can be shortened
@brainkim
Copy link
Member

Hahahaha if you make the observable.subscribe call a one-liner (maybe shorten subscription to sub), I will merge this in. Could be nice to show the flexibility of repeaters, how you can name the push and stop functions whatever you want.

However, the README is duplicated in the nested package README (https://github.com/repeaterjs/repeater/blob/master/packages/repeater/README.md) and the docs (https://github.com/repeaterjs/repeater/blob/master/docs/01_quickstart.md). Also I’d have to do a docs site deploy... mhmhghgh

And illustrate how it's almost exactly the same API as the Observable constructor but with an async function.

I will never acknowledge this. 🕵️‍♂️

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.

2 participants