Help us shape the future of Go! Take the 2026 Go Developer Survey

typing

package
v0.19.13 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package typing keeps a platform typing indicator alive while a turn runs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Refresher

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

Refresher re-fires a typing indicator on a ticker. The zero value is ready.

func (*Refresher) Start

func (r *Refresher) Start(ctx context.Context, interval time.Duration, refresh func() bool)

Start launches the refresh loop unless one was started and not stopped: refresh runs every interval until Stop, ctx ends, or refresh returns false.

func (*Refresher) Stop

func (r *Refresher) Stop()

Stop ends the loop, if one is running.

Jump to

Keyboard shortcuts

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