task

package
v1.8.2-0...-ee23551 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2024 License: GPL-2.0, GPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Package task provides handy utilities to define & trace tasks.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Running

func Running(ctxp *context.Context, name string) func(*error)

Running is syntactic sugar to push new task to operational stack, trace it and adjust error return with task prefix.

use like this:

defer task.Running(&ctx, "my task")(&err)

func Runningf

func Runningf(ctxp *context.Context, format string, argv ...interface{}) func(*error)

Runningf is Running cousin with formatting support

Types

This section is empty.

Jump to

Keyboard shortcuts

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