ctxutil

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Call

func Call(ctx context.Context, prefix string, fn func() error, lateFn func(error)) error

Allows fn to return early on ctx cancel. If fn does not return in time, lateFn will run at the end of fn (async).

func CallsState

func CallsState() string

func Retry

func Retry(ctx context.Context, sleep time.Duration, prefix string, fn func() error, lateFn func(error)) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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