ectx

package
v1.1.9 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewNoCancelContext

func NewNoCancelContext(ctx context.Context) context.Context

NoCancel remove ctx deadline then return a new context

Types

type NoCancelContext

type NoCancelContext struct {
	// contains filtered or unexported fields
}

NoCancelContext remove context deadline

func (NoCancelContext) Deadline

func (c NoCancelContext) Deadline() (time.Time, bool)

func (NoCancelContext) Done

func (c NoCancelContext) Done() <-chan struct{}

func (NoCancelContext) Err

func (c NoCancelContext) Err() error

func (NoCancelContext) Value

func (c NoCancelContext) Value(key interface{}) interface{}

Jump to

Keyboard shortcuts

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