postpone

package
v1.6.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2022 License: Apache-2.0 Imports: 3 Imported by: 47

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