MCPcopy Index your code
hub / github.com/beevik/timerqueue / New

Function New

queue.go:30–34  ·  view source on GitHub ↗

New creates a new timer priority queue.

()

Source from the content-addressed store, hash-verified

28
29// New creates a new timer priority queue.
30func New() *Queue {
31 return &Queue{
32 table: make(map[Timer]*timerData),
33 }
34}
35
36// Len returns the current number of timer objects in the queue.
37func (q *Queue) Len() int {

Callers 3

ExampleQueueFunction · 0.92
populateQueueFunction · 0.85
TestEmptyQueueFunction · 0.85

Calls

no outgoing calls

Tested by 3

ExampleQueueFunction · 0.74
populateQueueFunction · 0.68
TestEmptyQueueFunction · 0.68