ctxsync

package
v0.46.1 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RWMutex

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

RWMutex is similar to sync.RWMutex with handling for context cancellation in Lock and RLock.

func NewRWMutex

func NewRWMutex() RWMutex

func (RWMutex) Lock

func (m RWMutex) Lock(ctx context.Context) error

func (RWMutex) RLock

func (m RWMutex) RLock(ctx context.Context) error

func (RWMutex) RUnlock

func (m RWMutex) RUnlock()

func (RWMutex) Unlock

func (m RWMutex) Unlock()

Jump to

Keyboard shortcuts

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