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 IOLocal#scope #3214

Merged
merged 1 commit into from
Oct 26, 2022
Merged

Conversation

iRevive
Copy link
Contributor

@iRevive iRevive commented Oct 25, 2022

The follow-up to #3128. The original PR has been stale for some time :(

@iRevive iRevive mentioned this pull request Oct 25, 2022
Copy link
Member

@djspiewak djspiewak left a comment

Choose a reason for hiding this comment

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

Thank you!

@djspiewak djspiewak merged commit ab07e0b into typelevel:series/3.x Oct 26, 2022
* @param value
* the value to make a scope with
*/
def scope(value: A): Resource[IO, Unit]
Copy link
Member

Choose a reason for hiding this comment

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

Since this is as-yet unreleased: what if we made it scope(f: A => A) so it's a bit more general?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sounds good. I can update the signature of the method. The PR should target series/3.x branch, right?

Copy link
Member

Choose a reason for hiding this comment

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

Yep, thanks!

armanbilge added a commit to armanbilge/cats-effect that referenced this pull request Feb 5, 2023
djspiewak added a commit that referenced this pull request Feb 6, 2023
@djspiewak djspiewak mentioned this pull request May 13, 2023
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.

3 participants