done

package
v1.8.22 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2024 License: MPL-2.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) Close

func (d *Instance) Close() error

Close marks this Done 'done'. This method may be called multiple times. All calls after first call will have no effect on its status.

func (*Instance) Done

func (d *Instance) Done() bool

Done returns true if Close() is called.

func (*Instance) Wait

func (d *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