rc

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2025 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 DropFunc

type DropFunc func()

type Rc

type Rc[T io.Closer] struct {
	// contains filtered or unexported fields
}

func (*Rc[T]) Apply

func (r *Rc[T]) Apply(f func(T))

func (*Rc[T]) Get

func (r *Rc[T]) Get() (T, DropFunc)

func (*Rc[T]) Reset

func (r *Rc[T]) Reset(pointer T)

Jump to

Keyboard shortcuts

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