loop

package
v0.0.0-...-2d5f3dc Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Examples

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
}
Example
loop := new(EventLoop)
loop.Start()
loop.Post(&command.PrintCmd{Text: "Hello, I am event loop!"})
loop.AwaitFinish()
Output:

Hello, I am event loop!

func (*EventLoop) AwaitFinish

func (loop *EventLoop) AwaitFinish()

func (*EventLoop) Post

func (loop *EventLoop) Post(cmd parser.Command)

func (*EventLoop) Start

func (loop *EventLoop) Start()

Jump to

Keyboard shortcuts

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