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

Skip to content

Conversation

@khajavi
Copy link
Member

@khajavi khajavi commented Apr 10, 2021

@jdegoes
In the past few days, I was working on concurrency and stm pages.
In this merge request, I'm going to send the concurrency work It's ready to be reviewed. I will do the stm introduction in the separate merge request.


The idea behind the `modify` is that a variable is only updated if it still has the same value as the time we had read the value from the original memory location. If the value has changed, it retries in the while loop until it succeeds.

## Advantage of Using ZIO Concurrency
Copy link
Member

Choose a reason for hiding this comment

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

Another key point: ZIO concurrency structures, including those built with STM, are safe for interruption. This means that you can place them into timeouts, race them, and so forth, without leaking any resources.

@jdegoes
Copy link
Member

jdegoes commented Apr 12, 2021

🙏

@jdegoes jdegoes merged commit e693487 into zio:master Apr 12, 2021
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