# Functions
ForAtomicBool returns an AtomicBool with given val.
ForAtomicDuration returns an AtomicDuration with given value.
ForAtomicFloat64 returns an AtomicFloat64 with given val.
Guard guards the given fn with lock.
NewAtomicBool returns an AtomicBool.
NewAtomicDuration returns an AtomicDuration.
NewAtomicFloat64 returns an AtomicFloat64.
NewCond returns a Cond.
NewDoneChan returns a DoneChan.
NewImmutableResource returns an ImmutableResource.
NewLimit creates a Limit that can borrow n elements from it concurrently.
NewLockedCalls returns a LockedCalls.
NewManagedResource returns a ManagedResource.
NewPool returns a Pool.
NewRefResource returns a RefResource.
NewResourceManager returns a ResourceManager.
NewSingleFlight returns a SingleFlight.
NewTimeoutLimit returns a TimeoutLimit.
Once returns a func that guarantees fn can only called once.
WithMaxAge returns a function to customize a Pool with given max age.
WithRefreshIntervalOnFailure sets refresh interval on failure.
# Variables
ErrLimitReturn indicates that the more than borrowed elements were returned.
ErrTimeout is an error that indicates the borrow timeout.
ErrUseOfCleaned is an error that indicates using a cleaned resource.
# Structs
A Barrier is used to facility the barrier on a resource.
A Cond is used to wait for conditions.
A DoneChan is used as a channel that can be closed multiple times and wait for done.
No description provided by the author
Limit controls the concurrent requests.
A ManagedResource is used to manage a resource that might be broken and refetched, like a connection.
A OnceGuard is used to make sure a resource can be taken once.
No description provided by the author
A RefResource is used to reference counting a resource.
A ResourceManager is a manager that used to manage resources.
A SpinLock is used as a lock a fast execution.
A TimeoutLimit is used to borrow with timeouts.
# Type aliases
An AtomicBool is an atomic implementation for boolean values.
An AtomicDuration is an implementation of atomic duration.
An AtomicFloat64 is an implementation of atomic float64.
No description provided by the author
No description provided by the author