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

Return an async iterable #45

Open
fabiancook opened this issue Nov 27, 2019 · 1 comment
Open

Return an async iterable #45

fabiancook opened this issue Nov 27, 2019 · 1 comment

Comments

@fabiancook
Copy link

This would give a "native" way to consume changes.

A possible example of usage...

import { withProps } from 'proppy';

const P = withProps({ counter: 1 });

const p = P();

for await (const value of p.subscribe()) {
  console.log({ value });
}
@fahad19
Copy link
Owner

fahad19 commented Dec 24, 2019

Hi @fabiancook!

This looks interesting. Do you have any PoC for this? I can investigate if it's worth exploring it then.

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

2 participants