-
Notifications
You must be signed in to change notification settings - Fork 74
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
Copy/Contents of Methods #13
Comments
Hey @stephen304 First of all, sorry for the looooooonnng reply delay :-) That's an interesting point!
Talking about this, I realize it might be a good idea to add a |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'd like to use lane to store a variable list of things where the oldest items are only the ones being removed and the newest go in front. Naturally, a queue from this package would work great, but when printing the contents of the queue, you have to destroy it by popping everything off. This makes my brain hurt when trying to figure out whether I can safely print the contents this way while another thread may be writing to the queue, as the locks are per operation (pop), and there's no way to lock the list for the duration of the copy process.
I would like to propose one of two things:
What do you think?
The text was updated successfully, but these errors were encountered: