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 Permit type like Semaphore #1330

Merged
merged 3 commits into from
Sep 11, 2024
Merged

Add Permit type like Semaphore #1330

merged 3 commits into from
Sep 11, 2024

Conversation

geny200
Copy link
Contributor

@geny200 geny200 commented Sep 6, 2024

Hi, I noticed a disadvantage in tofu that there is no semaphore primitive, but there are concurrent primitives for atomic variables. To avoid creating semaphore based on Agen/QVar/Atom, I suggest to add a new primitive Permit, which will use native implementation of the semaphore, depending on the effects.

Co-authored-by: Vadim Chelyshov <qtankle@gmail.com>
@dos65 dos65 merged commit f8d62e5 into tofu-tf:master Sep 11, 2024
9 checks passed
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