package
1.2.120
Repository: https://github.com/searking/golang.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
Package leaderelection implements leader election of a set of endpoints.

# Functions

NewEvent returns a new, ready-to-use Event.
NewTimeoutCond returns a new TimeoutCond with Locker l.
WithLock runs while holding lk.
WiththreadDoEscapeThread sets EscapeThread in threadDo.

# Constants

DefaultMaxIdleResourcesPerBucket is the default value of LruPool's MaxIdleResourcesPerBucket.

# Variables

DefaultLruPool is new resources as needed and caches them for reuse by subsequent calls.
ErrThreadClosed is returned by the Thread's Do methods after a call to `Shutdown`.
ErrUntilClosed is returned by the Until's Do method after a call to Close.

# Structs

ConditionVariable is an object able to block the calling thread until notified to resume.
EmptyThreadDoOption does not alter the configuration.
Event represents a one-time event that may occur in the future.
LruPool is an implementation of sync.Pool with LRU.
PersistResource wraps a resource, usually a persistent one (but may be used for non-keep-alive requests as well).
Subject implements a condition variable like with channel, a rendezvous point for goroutines waiting for or announcing the occurrence of an event.
Thread should be used for such as calling OS services or non-Go library functions that depend on per-thread state, as runtime.LockOSThread().
No description provided by the author
Until represents a class of work and forms a namespace in which units of work can be executed with duplicate suppression.
No description provided by the author

# Interfaces

A ThreadDoOption sets options.

# Type aliases

ThreadDoOptionFunc wraps a function that modifies threadDo into an implementation of the ThreadDoOption interface.
WalkFunc is the type of the function called for each task processed by Walk.