package event

import "golang.org/x/exp/shiny/driver/internal/event"

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

Index

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

event.go

Version
v0.0.0-20250218142911-aa4b98e5adaa (latest)
Published
Feb 18, 2025
Platform
linux/amd64
Imports
1 packages
Last checked
1 month ago

Tools for package owners.