Documentation

Overview

Package event provides an infinitely buffered double-ended queue of events.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Deque

type Deque struct {
	// contains filtered or unexported fields
}

Deque is an infinitely buffered double-ended queue of events. The zero value is usable, but a Deque value must not be copied.

func (*Deque) NextEvent

func (q *Deque) NextEvent() interface{}

NextEvent implements the screen.EventDeque interface.

func (*Deque) Send

func (q *Deque) Send(event interface{})

Send implements the screen.EventDeque interface.

func (*Deque) SendFirst

func (q *Deque) SendFirst(event interface{})

SendFirst implements the screen.EventDeque interface.

Source Files