Discover Packages
github.com/gksinghjsr/carbon-relay-ng
util
package
Version:
v0.12.0
Opens a new window with list of versions in this module.
Published: Sep 18, 2019
License: BSD-2-Clause-Views
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
some.host:2003, kafkaRoute -> kafkaRoute_some_host_2003
http://some.host:8080 , kafkaRoute -> kafkaRoute_http_some_host_8080
type Limiter chan struct{}
Limiter limits concurrency
Users need to call Add() before starting work and Done()
when the work is done.
Add() will block if the Limiters limit has already been reached and
unblock when another thread calls Done()
NewLimiter creates a limiter with l slots
Source Files
¶
Click to show internal directories.
Click to hide internal directories.