wait

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2024 License: Apache-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 Done added in v0.5.1

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

Done support to mark the work as done

type Wait

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

Wait the interface that implements execute work synchronously

type WaitDone

type WaitDone interface {
	Wait
	Done
}

WaitDone support to execute the work synchronously and mark the work as done

func NewWaitDone

func NewWaitDone() WaitDone

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

Jump to

Keyboard shortcuts

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