MCPcopy Index your code
hub / github.com/panjf2000/gnet / Enqueue

Method Enqueue

pkg/queue/queue.go:44–44  ·  view source on GitHub ↗
(*Task)

Source from the content-addressed store, hash-verified

42// AsyncTaskQueue is a queue storing asynchronous tasks.
43type AsyncTaskQueue interface {
44 Enqueue(*Task)
45 Dequeue() *Task
46 IsEmpty() bool
47 Length() int32

Callers 5

TestLockFreeQueueFunction · 0.65
TriggerMethod · 0.65
TriggerMethod · 0.65
TriggerMethod · 0.65
TriggerMethod · 0.65

Implementers 1

lockFreeQueuepkg/queue/lock_free_queue.go

Calls

no outgoing calls

Tested by 1

TestLockFreeQueueFunction · 0.52