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

Provide AnyMap for arbitrary user data #148

Closed
wants to merge 1 commit into from
Closed

Provide AnyMap for arbitrary user data #148

wants to merge 1 commit into from

Conversation

vorner
Copy link
Contributor

@vorner vorner commented Jan 15, 2017

Provide a storage where the futures may store arbitrary data. This
allows having loop-local globals, which is handy to create things like
caches, singleton tasks, registrars, etc.

This is a proposal for #147.

Provide a storage where the futures may store arbitrary data. This
allows having loop-local globals, which is handy to create things like
caches, singleton tasks, registrars, etc.
@alexcrichton
Copy link
Contributor

Hm I would personally prefer to not pull this in as a public dependency but rather provide the necessary tools to build such an abstraction out of tree. We can perhaps discuss more on #147

@vorner
Copy link
Contributor Author

vorner commented Jan 15, 2017

This is why I provided the other proposal as well (#149). While I believe the purpose of AnyMap is basically this, it is an extra dependency.

I don't see an obvious way for building such a thing out of tree, but as I probably mentioned somewhere, I'm new to Rust so I might be missing it. I'm open to discussion, both here and on #147.

@alexcrichton
Copy link
Contributor

Ok a PR like #149 sounds good to me, so I'm going to close this tentatively in favor of that (pending discussion on #147)

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 this pull request may close these issues.

None yet

2 participants