hashqueue

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 2, 2025 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Overview

Package hashqueue provides a serialisation function call execution mechanism.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Group

type Group[K comparable, V any] struct {
	// contains filtered or unexported fields
}

func (*Group[K, V]) Do

func (g *Group[K, V]) Do(key K, fn func() (V, error)) (V, error)

func (*Group[K, V]) DoChan

func (g *Group[K, V]) DoChan(key K, fn func() (V, error)) <-chan Result[V]

func (*Group[K, V]) TryDo

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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL