syncx

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ResourceManager

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

func NewResourceManager

func NewResourceManager() *ResourceManager

func (*ResourceManager) Close

func (r *ResourceManager) Close() error

func (*ResourceManager) Get

func (r *ResourceManager) Get(key string, creator func() (io.Closer, error)) (io.Closer, error)

func (*ResourceManager) Inject

func (r *ResourceManager) Inject(key string, rsc io.Closer)

type SpinLock

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

func (*SpinLock) Lock

func (s *SpinLock) Lock()

func (*SpinLock) TryLock

func (s *SpinLock) TryLock() bool

func (*SpinLock) Unlock

func (s *SpinLock) Unlock()

Jump to

Keyboard shortcuts

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