Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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.
43
type
AsyncTaskQueue
interface
{
44
Enqueue(*Task)
45
Dequeue() *Task
46
IsEmpty() bool
47
Length() int32
Callers
5
TestLockFreeQueue
Function · 0.65
Trigger
Method · 0.65
Trigger
Method · 0.65
Trigger
Method · 0.65
Trigger
Method · 0.65
Implementers
1
lockFreeQueue
pkg/queue/lock_free_queue.go
Calls
no outgoing calls
Tested by
1
TestLockFreeQueue
Function · 0.52