package
Version:
v0.2.0
Opens a new window with list of versions in this module.
Published: Mar 2, 2025
License: BSD-3-Clause
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package hashqueue provides a serialisation function call execution
mechanism.
-
type Group
-
func (g *Group[K, V]) Do(key K, fn func() (V, error)) (V, error)
-
func (g *Group[K, V]) DoChan(key K, fn func() (V, error)) <-chan Result[V]
-
func (g *Group[K, V]) TryDo(key K, fn func() (V, error)) (V, error, bool)
-
type Result
type Result[V any] struct {
Val V
Err error
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.