shutdowncoordinator

package
v0.4.0-alpha.5 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ShutdownCoordinator

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

func New

func (*ShutdownCoordinator) AreAllSubComponentsDone

func (s *ShutdownCoordinator) AreAllSubComponentsDone() bool

don't block, just check, if all the sub-tree is terminated.

func (*ShutdownCoordinator) Done

func (s *ShutdownCoordinator) Done()

func (*ShutdownCoordinator) Sub

makes a subcontext, with a name (for debugging).

func (*ShutdownCoordinator) Wait

func (s *ShutdownCoordinator) Wait()

func (*ShutdownCoordinator) WaitWithLogging

func (s *ShutdownCoordinator) WaitWithLogging()

waits to for all the hierarchy to complete. (same as Wait(), but logs what components are still being waited for)

Jump to

Keyboard shortcuts

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