access

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2022 License: BSD-3-Clause Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Unique

type Unique[T any] struct {
	// contains filtered or unexported fields
}

Control access to obj with unique access

func NewUnique

func NewUnique[T any](obj T) *Unique[T]

func (*Unique[T]) Acquire

func (u *Unique[T]) Acquire() (T, bool)

func (*Unique[T]) Close added in v1.1.0

func (u *Unique[T]) Close()

func (*Unique[T]) Release

func (u *Unique[T]) Release()

Jump to

Keyboard shortcuts

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