github.com/irfansharif/qpool (go): Package qpool is an efficient implementation of a quota pool designed for concurrent use. Quota pools, including the one here, can be used for flow control or admission control purposes. This implementation however differs in that it allows for arbitrary quota acquisitions thus allowing for finer grained resource management. Additionally for blocking calls qpool allows for asynchronous context cancellations by internally composing locks with channels.
Keywords: concurrency|go|golang