Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventLoop ¶
type EventLoop struct {
// contains filtered or unexported fields
}
EventLoop is a simple event loop that supports concurrent processing. Tasks are processed in the order they're received on the queue. Some tasks may require less time to process.
func (*EventLoop) GracefullyStop ¶
GracefullyStop waits for the event loop to drain before returning.
type LinkedList ¶
type LinkedList struct {
// contains filtered or unexported fields
}
LinkedList implements a doubly linked list making it easy to treat as a stack or as a queue. This shares a similar interface to c++'s vector object.
func (*LinkedList) PopBack ¶
func (ll *LinkedList) PopBack() T
PopBack removes the element at the end of the list.
func (*LinkedList) PopFront ¶
func (ll *LinkedList) PopFront() T
PopFront removes the element from the start of the list.
func (*LinkedList) PushBack ¶
func (ll *LinkedList) PushBack(t T)
PushBack appends an element to the end of the list.
func (*LinkedList) PushFront ¶
func (ll *LinkedList) PushFront(t T)
PushFront prepends an element to the start of the list.
func (*LinkedList) Size ¶
func (ll *LinkedList) Size() int
Click to show internal directories.
Click to hide internal directories.