package
Version:
v0.0.0-...-016edcc
Opens a new window with list of versions in this module.
Published: May 14, 2024
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Once[T any] struct {
RetryOnError bool
}
func (o *Once[T]) MustDo(f func() (T, error)) T
type Pool[T any] struct {
New func() T
}
func (p *Pool[T]) Get() T
func (p *Pool[T]) Put(v T)
func (w *Wait) Broadcast()
func (w *Wait) Wait(completed func() bool) <-chan struct{}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.