Documentation ¶
Index ¶
- type Job
- type Jobs
- func (jobs *Jobs[Key, Value]) Delete(key Key)
- func (jobs Jobs[Key, Value]) Len() int
- func (jobs Jobs[Key, Value]) Less(i, j int) bool
- func (jobs *Jobs[Key, Value]) Pop() any
- func (jobs *Jobs[Key, Value]) Push(x any)
- func (jobs Jobs[Key, Value]) Swap(i, j int)
- func (jobs *Jobs[Key, Value]) UpdateDeadline(key Key, deadline time.Duration)
- type Queue
- func (q *Queue[Key, Value]) Add(key Key, value Value, delay time.Duration)
- func (q *Queue[Key, Value]) Init(now func() time.Duration, exec func(Key, Value))
- func (q *Queue[Key, Value]) Len() int
- func (q *Queue[Key, Value]) Move(key Key, delay time.Duration)
- func (q *Queue[Key, Value]) Remove(key Key)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Job ¶
type Job[Key comparable, Value any] struct { // contains filtered or unexported fields }
type Jobs ¶
type Jobs[Key comparable, Value any] struct { // contains filtered or unexported fields }
func (*Jobs[Key, Value]) UpdateDeadline ¶
Click to show internal directories.
Click to hide internal directories.