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 a more realistic Lock::Async.protect example #3488

Merged
merged 1 commit into from
Jun 20, 2020
Merged

Conversation

Altai-man
Copy link
Member

Closes #3411

The problem

The example used some sleep and prints.

Solution provided

A more real-world-y example is provided with reading/modifying an array concurrently.

Copy link
Contributor

@JJ JJ left a comment

Choose a reason for hiding this comment

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

Thanks a lot!

@JJ JJ merged commit e696810 into master Jun 20, 2020
@Altai-man Altai-man deleted the protecc-example branch June 20, 2020 15:25
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.

Improve .protect description
2 participants