wait

package
v0.0.0-...-e38a99a Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2022 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Wait

type Wait interface {
	// Wait wait to the work execute finished
	Wait() error
}

type WaitDone

type WaitDone interface {
	Wait
	// Done mark the work execute finished
	Done()
	// DoneWithError mark the work execute finished with error info
	DoneWithError(err error)
}

WaitDone support execute the work synchronously

func NewWaitDone

func NewWaitDone() WaitDone

NewWaitDone create an instance of WaitOne to support execute the work synchronously

Jump to

Keyboard shortcuts

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