Documentation
¶
Index ¶
Constants ¶
View Source
const CName = "common.util.syncqueues"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActionPool ¶
type ActionPool interface {
Run()
Add(peerId, objectId string, action func(ctx context.Context), remove func())
Close()
}
func NewActionPool ¶
func NewActionPool(closePeriod, gcPeriod time.Duration, openFunc func(peerId string) *replaceableQueue) ActionPool
type SyncQueues ¶
type SyncQueues interface {
app.ComponentRunnable
ActionPool(spaceId string) ActionPool
Limit(spaceId string) *Limit
}
func New ¶
func New() SyncQueues
Click to show internal directories.
Click to hide internal directories.