internal

package
v1.15.0-rc.6 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrLockClosed = errors.New("actor lock is closed")

Functions

This section is empty.

Types

type Lock

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

Lock is a fifo Mutex which respects reentrancy and stack depth.

func NewLock

func NewLock(opts LockOptions) *Lock

func (*Lock) Close

func (l *Lock) Close()

func (*Lock) CloseUntil

func (l *Lock) CloseUntil(d time.Duration)

func (*Lock) Lock

func (l *Lock) Lock() (context.CancelFunc, error)

func (*Lock) LockRequest

func (l *Lock) LockRequest(msg *invokev1.InvokeMethodRequest) (context.CancelFunc, error)

type LockOptions

type LockOptions struct {
	ActorType         string
	ReentrancyEnabled bool
	MaxStackDepth     int
}

Jump to

Keyboard shortcuts

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