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

Add Thread::LinkedList#each to safely iterate lists #15300

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ysbaddaden
Copy link
Contributor

@ysbaddaden ysbaddaden commented Dec 20, 2024

Sometimes we'd like to be able to safely iterate the lists. Also adds Thread.each(&) and Fiber.each(&) as convenience accessors.

This will be used in RFC 2 to safely iterate execution contexts for example.

Also adds `Thread.each(&)` and `Fiber.each(&)`.
@straight-shoota straight-shoota added this to the 1.15.0 milestone Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants