Discover Packages
github.com/ProtonMail/proton-bridge/v3
internal
safe
package
Version:
v3.24.2
Opens a new window with list of versions in this module.
Published: Apr 17, 2026
License: GPL-3.0
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0 modules, 0 packages
The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Opens a new window with list of known importers.
Documentation
Documentation
¶
func Lock(fn func(), m ...Mutex)
func LockRet[T any](fn func() T, m ...Mutex) T
func LockRetErr[T any](fn func() (T, error), m ...Mutex) (T, error)
func RLock(fn func(), m ...RWMutex)
func RLockRet[T any](fn func() T, m ...RWMutex) T
func RLockRetErr[T any](fn func() (T, error), m ...RWMutex) (T, error)
type Mutex
type RWMutex
func Lock(fn func(), m ...Mutex )
Lock locks one or more mutexes for writing and calls the given function.
The mutexes are locked in a deterministic order to avoid deadlocks.
func LockRet[T any ](fn func() T, m ...Mutex ) T
LockRet locks one or more mutexes for writing and calls the given function, returning a value.
LockRetErr locks one or more mutexes for writing and calls the given function, returning a value and an error.
func RLock(fn func(), m ...RWMutex )
RLock locks one or more mutexes for reading and calls the given function.
The mutexes are locked in a deterministic order to avoid deadlocks.
RLockRet locks one or more mutexes for reading and calls the given function, returning a value.
RLockRetErr locks one or more mutexes for reading and calls the given function, returning a value and an error.
type Mutex interface {
Lock()
Unlock()
}
Mutex is a mutex that can be locked and unlocked.
NewMutex returns a new mutex.
type RWMutex interface {
Mutex
RLock()
RUnlock()
}
RWMutex is a mutex that can be locked and unlocked for reading and writing.
NewRWMutex returns a new read-write mutex.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.