coio-rs icon indicating copy to clipboard operation
coio-rs copied to clipboard

Coroutine local variables

Open zonyitoo opened this issue 8 years ago • 1 comments

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 avatar Feb 10 '16 16:02 zonyitoo

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?

zonyitoo avatar Feb 10 '16 17:02 zonyitoo