engine

package
v0.0.0-...-ce75991 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command interface {
	Execute(handler Handler)
}

Command represents actions that can be performed in a single event loop iteration.

type EventLoop

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

func (*EventLoop) AwaitFinish

func (el *EventLoop) AwaitFinish()

func (*EventLoop) Post

func (el *EventLoop) Post(cmd Command)

func (*EventLoop) Start

func (el *EventLoop) Start()

type Handler

type Handler interface {
	Post(cmd Command)
}

Handler allows to send commands to an event loop it’s associated with.

Jump to

Keyboard shortcuts

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