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

introduction page for concurrency primitives. #4934

Merged
merged 5 commits into from
Apr 12, 2021

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.

None yet

2 participants