Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@guizmaii
Copy link
Member

@guizmaii guizmaii commented Dec 17, 2025

Again? πŸ€”
I thought I already did this here: #9483

I didn't find in the history of this file why this code went back as it was (unoptimized) πŸ€”
https://github.com/zio/zio/commits/fda2d2e753c9266d79ff619b2d2da1f8c1318457/core/shared/src/main/scala/zio/FiberRef.scala

Again? πŸ€”
I thought I already did this here: #9483
*
* Guarantees that fiber data is properly restored via `acquireRelease`.
*/
def locallyWith[R, E, B](f: A => A)(zio: ZIO[R, E, B])(implicit trace: Trace): ZIO[R, E, B] =
Copy link
Collaborator

Choose a reason for hiding this comment

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

You are changing locallyWith, but your title says locallyScopedWith.

This method is overriden in the child.

@guizmaii guizmaii closed this Dec 17, 2025
@guizmaii guizmaii deleted the opt_FiberRef_locallyScopedWith branch December 17, 2025 23:45
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