runtimefinalizer

package
v0.55.0 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2026 License: Apache-2.0 Imports: 4 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NumberRange

type NumberRange struct {
	// contains filtered or unexported fields
}

NumberRange can be used as source for successive id numbers to tag elements, since debuggers not always sow object addresses.

func (*NumberRange) NextId

func (n *NumberRange) NextId() uint64

type ObjectIdentity

type ObjectIdentity string

func NewObjectIdentity

func NewObjectIdentity(kind string) ObjectIdentity

func (ObjectIdentity) String

func (i ObjectIdentity) String() string

type RecorderProvider

type RecorderProvider interface {
	GetRecorder() *RuntimeFinalizationRecoder
}

type RuntimeFinalizationRecoder

type RuntimeFinalizationRecoder struct {
	// contains filtered or unexported fields
}

func GetRuntimeFinalizationRecorder

func GetRuntimeFinalizationRecorder(o any) *RuntimeFinalizationRecoder

func (*RuntimeFinalizationRecoder) Get

func (*RuntimeFinalizationRecoder) IsFinalized

func (r *RuntimeFinalizationRecoder) IsFinalized(objs ...ObjectIdentity) bool

func (*RuntimeFinalizationRecoder) Record

type RuntimeFinalizer

type RuntimeFinalizer struct {
	// contains filtered or unexported fields
}

func NewRuntimeFinalizer

func NewRuntimeFinalizer(id ObjectIdentity, r *RuntimeFinalizationRecoder, cleanup ...func() error) *RuntimeFinalizer

func (*RuntimeFinalizer) AddFinalizer

func (f *RuntimeFinalizer) AddFinalizer(fi ...func() error)

Jump to

Keyboard shortcuts

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