MCPcopy Create free account
hub / github.com/enriquebris/goconcurrentqueue / Enqueue

Method Enqueue

queue.go:8–8  ·  view source on GitHub ↗

Enqueue element

(interface{})

Source from the content-addressed store, hash-verified

6type Queue interface {
7 // Enqueue element
8 Enqueue(interface{}) error
9 // Dequeue element
10 Dequeue() (interface{}, error)
11 // DequeueOrWaitForNextElement dequeues an element (if exist) or waits until the next element gets enqueued and returns it.

Callers 15

TestGetLenMultipleGRsMethod · 0.65
TestGetCapSingleGRMethod · 0.65
TestGetLockSingleGRMethod · 0.65
TestGetSingleGRMethod · 0.65
TestGetMultipleGRsMethod · 0.65
TestRemoveSingleGRMethod · 0.65

Implementers 2

FIFOfifo_queue.go
FixedFIFOfixed_fifo_queue.go

Calls

no outgoing calls

Tested by 15

TestGetLenMultipleGRsMethod · 0.52
TestGetCapSingleGRMethod · 0.52
TestGetLockSingleGRMethod · 0.52
TestGetSingleGRMethod · 0.52
TestGetMultipleGRsMethod · 0.52
TestRemoveSingleGRMethod · 0.52