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 Capsule.protect #3381

Merged
merged 5 commits into from
Dec 19, 2024
Merged

Add Capsule.protect #3381

merged 5 commits into from
Dec 19, 2024

Conversation

TheNumbat
Copy link
Contributor

@TheNumbat TheNumbat commented Dec 16, 2024

Adds Capsule.protect, which is already used in tdelvecchio-portable-stdlib-5.2.0minus-4.

An equivalent function could be implemented with keys, but there's currently no way to defer creating the mutex until after the given function raises.

Copy link
Contributor

@dkalinichenko-js dkalinichenko-js left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

Base automatically changed from capsule-condition to main December 19, 2024 23:11
@TheNumbat TheNumbat merged commit 0c13623 into main Dec 19, 2024
20 checks passed
@TheNumbat TheNumbat deleted the capsule-protect branch December 19, 2024 23:12
TheNumbat added a commit that referenced this pull request Dec 19, 2024
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.

2 participants