package
0.0.0-20220412220916-5ea02083e3ec
Repository: https://github.com/riteshrch/go-edge-device-lib.git
Documentation: pkg.go.dev

# Functions

CloseAfterContext schedules the process to close after the given context is done.
OnClosedContext derives a context from a given goprocess that will be 'Done' when the process is closed.
OnClosingContext derives a context from a given goprocess that will be 'Done' when the process is closing.
WaitForContext makes p WaitFor ctx.
WithContext constructs and returns a Process that respects given context.
WithContextAndTeardown is a helper function to set teardown at initiation of WithContext.
WithProcessClosed returns a context.Context that is cancelled after Process p is Closed.
WithProcessClosing returns a context.Context derived from ctx that is cancelled as p is Closing (after: <-p.Closing()).