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 is a simple struct that manages a queue of functions. Thread safe
func (*Queue) Add ¶
func (q *Queue) Add(f func())
Add will add an an item to the queue, thread safe.
func (*Queue) ClearAndStop ¶
func (q *Queue) ClearAndStop()
ClearAndStop will clear the queue disable adding more items to it, thread safe.
Click to show internal directories.
Click to hide internal directories.