clictx

package
v0.27.2 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2023 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Do added in v0.26.0

func Do(ctx context.Context, fn func() error) error

Do runs fn and waits for its result unless ctx is canceled. Returns fn result or canceled context error.

func From

func From(ctx context.Context) context.Context

From creates a new context from ctx that is canceled when an exit signal received.

Types

This section is empty.

Jump to

Keyboard shortcuts

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