Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Queue ¶
type Queue struct {
// contains filtered or unexported fields
}
Queue is a FIFO container of tasks. The zero value is an empty queue.
func (*Queue) Append ¶
Append pops the contents of another queue and pushes them onto the end of this queue.
type Stack ¶
type Stack struct {
// contains filtered or unexported fields
}
Stack is a LIFO container of tasks. The zero value is an empty stack. This is slightly cheaper than a queue, so it can be preferable when strict ordering is not necessary.
type Task ¶
type Task struct { // Next is a field which can be used to make a linked list of tasks. Next *Task // Ptr is a field which can be used for storing a pointer. Ptr unsafe.Pointer // Data is a field which can be used for storing state information. Data uint // contains filtered or unexported fields }
Task is a state of goroutine for scheduling purposes.
Click to show internal directories.
Click to hide internal directories.