background

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2020 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtendContextForFinalization

func ExtendContextForFinalization(parent context.Context, timeout time.Duration) (context.Context, context.CancelFunc)

Long story short: sometimes you need just a little more time to do a write or clean things up, even after a client has cancelled the request (and therefore the context) but you still need all the auth credentials and other values stored in the context. For that, we have this beauty. Use it to make a copy of your expired context and do your cleanup work.

Types

This section is empty.

Jump to

Keyboard shortcuts

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