Wait

package
v0.0.0-...-6677c76 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close

func Close()

Close closes the pool wait.

func IsRunning

func IsRunning() bool

IsRunning returns true if the pool wait is running, false otherwise.

Returns:

  • bool: True if the pool wait is running, false otherwise.

func Start

func Start()

Start starts the pool wait.

Types

type Waitee

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

Waitee is a type that waits for a key press.

func GetWaitee

func GetWaitee() *Waitee

GetWaitee gets a new waitee.

Returns:

  • *Waitee: The new waitee.

func (*Waitee) Clean

func (w *Waitee) Clean()

func (*Waitee) Notify

func (w *Waitee) Notify(isKeyPressed bool)

Notify notifies the waitee.

Parameters:

  • isKeyPressed: A flag indicating whether a key was pressed.

func (*Waitee) Wait

func (w *Waitee) Wait()

Wait waits for a key press.

Jump to

Keyboard shortcuts

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