postpone

package
v0.5.1-0...-1b82622 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package postpone is used to create a context with postponed deadline for some cleanup operations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Context

func Context(ctx context.Context) func() (context.Context, context.CancelFunc)

Context returns a function providing the context with the same timeout as ctx has at this moment.

func ContextWithValues

func ContextWithValues(ctx context.Context) func() (context.Context, context.CancelFunc)

ContextWithValues is the same as a Context, but also provided context has the same values as ctx.

Types

This section is empty.

Jump to

Keyboard shortcuts

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