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

Use a custom awaitable async queue #163

Merged
merged 3 commits into from
May 23, 2024
Merged

Use a custom awaitable async queue #163

merged 3 commits into from
May 23, 2024

Conversation

pglombardo
Copy link
Collaborator

@pglombardo pglombardo commented May 22, 2024

Description

This PR implements a new AwaitableQueueX custom class that manages an underlying ConcurrentQueue with a semaphore that can be asynchronously awaited on. This avoids any type of thread blocking or the need for custom (and inefficient) delays or sleeps.

Related Issue

Type of Change

  • 📚 Examples / docs / tutorials / dependencies update
  • 🔧 Bug fix (non-breaking change which fixes an issue)
  • 🥂 Improvement (non-breaking change which improves an existing feature)
  • 🚀 New feature (non-breaking change which adds functionality)
  • 💥 Breaking change (fix or feature that would cause existing functionality to change)
  • 🔐 Security fix

Checklist

  • I've written tests (if applicable) for all new methods and classes that I created. (rake test)
  • I've added documentation as necessary so users can easily use and understand this feature/fix.

@pglombardo pglombardo added the enhancement New feature or request label May 22, 2024
@pglombardo pglombardo merged commit 635ef37 into main May 23, 2024
7 checks passed
@pglombardo pglombardo deleted the awaitable-queue branch May 23, 2024 09:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant