recontext

package
v1.0.10411-918de7c Latest Latest
Warning

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

Go to latest
Published: May 22, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package recontext provides means of obtaining a derived context which ignores parent's deadline, timeout, and cancellation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithNewDeadline

func WithNewDeadline(parent context.Context, deadline time.Time) (context.Context, context.CancelFunc)

WithNewDeadline returns a derived context that will ignore cancellation, deadline, and timeout of the parent context. In order to avoid stuck contexts, new deadline is mandatory.

func WithNewTimeout

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

WithNewTimeout returns a derived context that will ignore cancellation, deadline, and timeout of the parent context. In order to avoid stuck contexts, new timeout is mandatory.

Types

This section is empty.

Jump to

Keyboard shortcuts

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