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

Why do the closures taken by Coroutine::spawn have to have the static lifetime? #70

Closed
BookOwl opened this issue Mar 18, 2017 · 1 comment

Comments

@BookOwl
Copy link
Contributor

BookOwl commented Mar 18, 2017

It is causing me problems

@zonyitoo
Copy link
Contributor

The main reason is that I want to simulate APIs in std::thread. And I think it is hard to make things right if allowing captures from local scope.
Welcome to open a PR if you have ideas.

@BookOwl BookOwl closed this as completed Mar 23, 2017
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