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

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
@straight-shoota straight-shoota merged commit d21008e into crystal-lang:master Dec 25, 2024
69 checks passed
@ysbaddaden ysbaddaden deleted the feature/thread-linked-list-safe-each branch December 29, 2024 09:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Approved
Development

Successfully merging this pull request may close these issues.

2 participants