Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultTimeout = 30 * time.Second
Variables ¶
View Source
var ErrQueueingTimedout = &errQueueingTimedout{errors.New("queueing timedout")}
View Source
var ErrTooManyRequests = &errTooManyRequests{errors.New("too many requests queued")}
Functions ¶
Types ¶
type Queue ¶
type Queue struct {
// contains filtered or unexported fields
}
func NewQueue ¶
NewQueue creates a new queue limit specifies number of requests run concurrently queueLimit specifies maximum number of requests that can be queued if the number of requests is above the limit
Click to show internal directories.
Click to hide internal directories.