Documentation ¶
Index ¶
Constants ¶
View Source
const ( FIFOOrder = "fifo" FILOOrder = "filo" )
Orders
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Chan ¶ added in v1.2.0
type Chan struct {
// contains filtered or unexported fields
}
Chan is an object capable of doing stuff in a specific order without blocking when adding new items in the @
type ChanOptions ¶ added in v1.2.0
type ChanOptions struct { Order string // By default the funcs not yet processed when the context is cancelled will be dropped. However if TaskFunc is not // nil all funcs will be processed even after the context has been cancelled. TaskFunc astiworker.TaskFunc }
ChanOptions are Chan options
type CtxQueue ¶
type CtxQueue struct {
// contains filtered or unexported fields
}
CtxQueue is a queue that can - handle a context without dropping any messages sent before the context is cancelled - ensure that sending a message is not blocking if
- the queue has not been started
- the context has been cancelled
func (*CtxQueue) AddStats ¶
func (q *CtxQueue) AddStats(s *astistat.Stater)
AddStats adds queue stats
type RWMutex ¶
type RWMutex struct {
// contains filtered or unexported fields
}
RWMutex represents a RWMutex capable of logging its actions to ease deadlock debugging
func (*RWMutex) IsDeadlocked ¶
IsDeadlocked checks whether the mutex is deadlocked with a given timeout and returns the last caller
Click to show internal directories.
Click to hide internal directories.