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

Coroutine local variables #39

Open
zonyitoo opened this issue Feb 10, 2016 · 1 comment
Open

Coroutine local variables #39

zonyitoo opened this issue Feb 10, 2016 · 1 comment

Comments

@zonyitoo
Copy link
Owner

Now in Coio, Coroutine is the minimum execution routine. It would be nice if we can have a coroutine_local! macro implementation just like thread_local! in std.

Implementation detail will be discussed later.

@zonyitoo
Copy link
Owner Author

Just to note:

  1. If someone accesses to the variable without running Coroutine, it should panic or not? If not, what's the expected behavior?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant