-
Notifications
You must be signed in to change notification settings - Fork 5
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
Couple of ideas #13
Comments
Hello I probably don't understand your use case, or what the advantage is. And it looks like it would increasing the complexity of the API, which I'm reluctant to do without a good reason. Can you explain more? |
@vorner, my use case is that I'm building a small component that is supposed to fetch data from the datastore, quickly process it and pass down the pipeline and eventually to the network. |
@vorner, I'm also a bit puzzled with how to deal with |
I'm still not sure what you're doing ‒ I can't seem to get it from your description. Can you maybe share a code example demonstrating it? As for the collections, it's possible they are newer than when I've last touched bumpalo-herd 😇. Not sure what to do about them out of my head. |
Yeah, I'll come up with a minimal example today and post it. |
@vorner, here is an example with The problem is that I wonder if you could suggest some workarounds? |
I'm going over the example and the docs (both of What But the So I'm wondering about a new method on Another option you could do is to use the |
@vorner, would be nice if |
@vorner, another way of doing this that I see is to make versions of |
Well, for one, Herd tries to do it the simple way and not deal with any IDs (not on the outside, nor on the inside). Another one is, you probably don't get a nice API if you start dealing with IDs and I'm not sure you'll be stopped by the borrow checker from doing dangerous things with that kind of API. |
@vorner, for now - I don't see good solutions either (except convincing |
First of all I'd like to say that it is a great crate and it is very relevant to my work.
While working with it I came a cross of several ideas, not sure if @vorner would find them adequate:
get_by_id()
method which would allow to get a Bump attached to some kind of resource - a thread for example. Members acquired in such a way would not be shared between different resources - only within one resource designated by some kind of user-provided ID (thread ID, worker ID, coroutine ID, whatever).reset_unsafe()
method so that if user could reset an individual member if he really knows what he's doing. That is supposed to play together with the above method.The text was updated successfully, but these errors were encountered: