event

package
v0.0.0-...-e7e105d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 4, 2024 License: BSD-3-Clause Imports: 1 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL