done

package
v0.0.0-...-1f4d2fe Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2023 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Instance

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

Instance is a utility for notifications of something being done.

func New

func New() *Instance

New returns a new Done.

func (*Instance) Done

func (i *Instance) Done()

func (*Instance) IsDone

func (i *Instance) IsDone() bool

IsDone returns true if Done() is called.

func (*Instance) Wait

func (i *Instance) Wait() <-chan struct{}

Wait returns a channel for waiting for done.

Jump to

Keyboard shortcuts

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