Documentation ¶
Index ¶
- func Call(ctx context.Context, prefix string, fn func() error, lateFn func(error)) error
- func CallsState() string
- func Keep[T any](ps ...*T) *keeper[T]
- func Retry(ctx context.Context, retryPause time.Duration, prefix string, fn func() error, ...) error
- func WithCancel2(ctx1, ctx2 context.Context) (context.Context, context.CancelFunc)
- type Ctx
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Call ¶
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 WithCancel2 ¶ added in v1.3.8
Types ¶
Click to show internal directories.
Click to hide internal directories.