Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Guard ¶
type Guard struct {
// contains filtered or unexported fields
}
Guard owns an OS-specific resource limit scope for a DAG run.
func FromContext ¶
FromContext returns the resource guard stored in context, if present.
func Start ¶
Start attempts to prepare OS-native resource enforcement. It never returns an error because resource enforcement is a best-effort runtime capability.
func (*Guard) AssignProcess ¶
AssignProcess adds a process to the resource-limited scope.
Click to show internal directories.
Click to hide internal directories.