bg

package
v0.0.0-...-2da98db Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package bg provides primitives for the background tasks

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Work

func Work(ctx context.Context, f func(context.Context) error, opts ...Opt)

Work emits a new task in the background

Types

type Opt

type Opt func(*config)

func WithLogger

func WithLogger(logger zerolog.Logger) Opt

func WithName

func WithName(name string) Opt

Jump to

Keyboard shortcuts

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