go-eden / routine

Provides some convenient API, includes Goid(), GetG() and LocalStorage, which is a goroutine's local storage, just like ThreadLocal in other languages.
MIT License
114 stars 20 forks source link

NewLocalStorage does not support multiple instance #10

Closed yanchanghai closed 2 years ago

yanchanghai commented 2 years ago

Currently the NewLocalStorage doesn't support multiple instance, because the " type storage struct { }" is empty, need put one field is the storage struct.

sisyphsu commented 2 years ago

New version 1.0.0 has released, storage isn't empty struct anymore, please check it out~