I created a thread-safe, blocking, infinite dequeue go package. Feedback is appreciated

This page summarizes the projects mentioned and recommended in the original post on /r/golang

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • go-blocking-dequeue

    Thread safe, blocking, generic dequeue data structure for Go

  • Package link: github.com/AmrSaber/go-blocking-dequeue

  • go

    The Go programming language

  • In the constructor I copy the condition variables into the queue. Awkward, but that's just how the neglected sync.Condvar is designed. (The Go devs really don't like condition variables.) They share a common lock, which is perfectly fine. As a style choice, I let the caller allocate the backing buffer. Usage example:

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts