github.com/sunvim/utils@v0.1.0/priorityqueue/error.go (about) 1 package priorityqueue 2 3 import "errors" 4 5 var ( 6 // ErrDisposed is returned when an operation is performed on a disposed 7 // queue. 8 ErrDisposed = errors.New(`queue: disposed`) 9 10 // ErrTimeout is returned when an applicable queue operation times out. 11 ErrTimeout = errors.New(`queue: poll timed out`) 12 13 // ErrEmptyQueue is returned when an non-applicable queue operation was called 14 // due to the queue's empty item state 15 ErrEmptyQueue = errors.New(`queue: empty queue`) 16 )