kernel

package module
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GuardAction

func GuardAction(ledger cost.Reserver, estimateMicros int64) action.AnyHook

GuardAction integrates any cost.Reserver with a Kernel action. The adapter reserves before execution, releases on failure/cancel/panic, and records a successful reported cost. Terminal accounting is deliberately isolated from the request context: Commit and Release use a fresh background context with a five-second timeout, so a canceled request cannot strand a distributed reservation. Applications that need terminal errors returned to their caller should use cost.Reserver directly rather than a void hook.

Types

This section is empty.

Jump to

Keyboard shortcuts

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