Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Queue ¶
type Queue struct {
// contains filtered or unexported fields
}
Queue implements a simple de-duplicating queue that assumes that when a consumer runs Pop it will finish its job, and that all the Add calls up to the Pop call are fulfilled.
It is safe for concurrent use by multiple goroutines AND processes.
The Queue keeps no memory of Pop-ed names, so the populator is supposed to know when a Pop happened more recently than the event triggering the Add.
Click to show internal directories.
Click to hide internal directories.