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

Yield lock_info to #lock! block, like #lock does #155

Closed

Conversation

delphaber
Copy link

#lock method yields the lock_info object to the block.

But #lock! method does not.

This PR changes this. By passing lock_info to the block, the block is able to extend the lock.

What do you think about this?

@delphaber delphaber changed the title Yield lock_info to block, like #lock does Yield lock_info to #lock!, like #lock does Feb 24, 2025
@delphaber delphaber force-pushed the pass_lock_info_to_block branch from d629367 to 250fa7a Compare February 24, 2025 16:31
@delphaber delphaber changed the title Yield lock_info to #lock!, like #lock does Yield lock_info to #lock! block, like #lock does Feb 24, 2025
@delphaber
Copy link
Author

Now I see that extending the lock from inside the lock! block is not so helpful.

Well, you can close my PR if you want :)

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