Documentation ¶ Rendered for linux/amd64 windows/amd64 darwin/amd64 Index ¶ func Ctx(parent context.Context) (context.Context, context.CancelFunc) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Ctx ¶ func Ctx(parent context.Context) (context.Context, context.CancelFunc) Ctx returns a copy of the parent context that is marked done (its Done channel is closed) when termination signal arrives, when the returned stop function is called, or when the parent context's Done channel is closed, whichever happens first. Types ¶ This section is empty. Source Files ¶ View all Source files sigterm_unix.go Click to show internal directories. Click to hide internal directories.