handling

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package handling provides utilities for handlers and background workers

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Consume added in v0.4.0

func Consume[T any](ctx context.Context, ch <-chan T, f Consumer[T]) error

func Except added in v0.4.1

func Except(err error, exceptions ...error) error

func Repeat

func Repeat(ctx context.Context, interval time.Duration, f Worker) error

func RepeatImmediate added in v0.5.1

func RepeatImmediate(ctx context.Context, interval time.Duration, f Worker) error

Types

type Consumer added in v0.4.1

type Consumer[T any] func(elem T) (done bool, err error)

type Worker added in v0.4.1

type Worker func() (done bool, err error)

Jump to

Keyboard shortcuts

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