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

Interface AsyncTaskQueue

pkg/queue/queue.go:43–48  ·  view source on GitHub ↗

AsyncTaskQueue is a queue storing asynchronous tasks.

Source from the content-addressed store, hash-verified

41
42// AsyncTaskQueue is a queue storing asynchronous tasks.
43type AsyncTaskQueue interface {
44 Enqueue(*Task)
45 Dequeue() *Task
46 IsEmpty() bool
47 Length() int32
48}
49
50// EventPriority is the priority of an event.
51type EventPriority int

Callers 22

TestLockFreeQueueFunction · 0.65
TriggerMethod · 0.65
TriggerMethod · 0.65
TriggerMethod · 0.65
TriggerMethod · 0.65
TestLockFreeQueueFunction · 0.65
PollingMethod · 0.65
PollingMethod · 0.65
PollingMethod · 0.65
PollingMethod · 0.65
openMethod · 0.65
writeMethod · 0.65

Implementers 1

lockFreeQueuepkg/queue/lock_free_queue.go

Calls

no outgoing calls

Tested by

no test coverage detected