-
Notifications
You must be signed in to change notification settings - Fork 12
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
push*(repeater) type API #57
Comments
Hmmm. So first things first: your use-case is probably best served by an async generator and not a repeater: async function *gen() {
await checkSomethingAsynchronously();
yield *someOtherRepeater;
} Think of it like the
The problem was with using async generators and |
Oh yeah, I didn't think of just using an async generator.
I wonder if this is the case for |
I think I checked and found that |
One of the kind of cool things about
zen-observable
is you canI'm looking for an elegant way to do this with repeater. Seems like right now I'd have to use
for..await
:The syntax isn't bad really, but didn't we come to the conclusion awhile back that using
for..await
like this is dangerous? I can never remember the caveats exactly.The text was updated successfully, but these errors were encountered: