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.
Click to show internal directories.
Click to hide internal directories.