done

package
Version: v0.0.0-...-c4deb22 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2020 License: MIT 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.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL