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

replace unfold with from_fn #1609

Closed
cramertj opened this issue May 15, 2019 · 1 comment
Closed

replace unfold with from_fn #1609

cramertj opened this issue May 15, 2019 · 1 comment

Comments

@cramertj
Copy link
Member

a la https://doc.rust-lang.org/std/iter/fn.from_fn.html

@cramertj
Copy link
Member Author

aaaand unfortunately this doesn't work out today because the returned async body can't reference upvars from the closure passed in, so we still need unfold. :(

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 a pull request may close this issue.

1 participant