cleanup

package
v1.6.3 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeferTerminationCleanupFunction

func DeferTerminationCleanupFunction(wg *sync.WaitGroup, ch <-chan struct{}, f func())

DeferTerminationCleanupFunction will execute the given function `f` when the channel `ch` is closed. The given waitGroup will be added with a delta +1 and once the function `f` returns from its execution that same waitGroup will signalize function `f` is completed.

Types

This section is empty.

Jump to

Keyboard shortcuts

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