mocks

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: May 30, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WeightedSemaphore

type WeightedSemaphore struct {
	TryAcquireFn func(int64) bool
	AcquireFn    func(context.Context, int64) error
	ReleaseFn    func(uint64, int64)
	// contains filtered or unexported fields
}

func (*WeightedSemaphore) Acquire

func (m *WeightedSemaphore) Acquire(ctx context.Context, i int64) error

func (*WeightedSemaphore) GetReleaseCalls

func (m *WeightedSemaphore) GetReleaseCalls() uint64

func (*WeightedSemaphore) Release

func (m *WeightedSemaphore) Release(i int64)

func (*WeightedSemaphore) TryAcquire

func (m *WeightedSemaphore) TryAcquire(i int64) bool

Jump to

Keyboard shortcuts

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