timebomb

package
v0.0.0-...-f199cab Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: Apache-2.0 Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TimeBomb

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

func New

func New(countdown time.Duration, detonate func()) *TimeBomb

func (*TimeBomb) Defuse

func (b *TimeBomb) Defuse() bool

func (*TimeBomb) Pause

func (b *TimeBomb) Pause() bool

func (*TimeBomb) Reset

func (b *TimeBomb) Reset(countdown time.Duration)

func (*TimeBomb) Strap

func (b *TimeBomb) Strap()

func (*TimeBomb) Unpause

func (b *TimeBomb) Unpause()

Jump to

Keyboard shortcuts

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