runtimefinalizer

package
v0.18.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

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