Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrFutureClosed = errors.New("future has closed")
Functions ¶
func NormalizeDuration ¶ added in v0.0.4
func UnsafeToBytes ¶
func UnsafeToString ¶
Types ¶
type Copool ¶
type Copool struct {
// contains filtered or unexported fields
}
type ObjectPool ¶
type ObjectPool[T any] struct { // contains filtered or unexported fields }
func NewObjectPool ¶
func NewObjectPool[T any](creator func() T) *ObjectPool[T]
func (*ObjectPool[T]) Get ¶
func (p *ObjectPool[T]) Get() T
func (*ObjectPool[T]) Put ¶
func (p *ObjectPool[T]) Put(x T)
Click to show internal directories.
Click to hide internal directories.