xcontext

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2026 License: ISC Imports: 3 Imported by: 0

Documentation

Overview

Package xcontext implements indispensable context helpers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithoutCancel

func WithoutCancel(ctx context.Context) context.Context

WithoutCancel returns a context derived from ctx that may never be cancelled.

func WithoutValues

func WithoutValues(ctx context.Context) context.Context

WithoutValues creates a new context derived from ctx that does not inherit its values but does pass on cancellation.

Types

type Mutex

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

func NewMutex

func NewMutex() *Mutex

func (*Mutex) Lock

func (m *Mutex) Lock(ctx context.Context) error

func (*Mutex) TryLock

func (m *Mutex) TryLock() bool

func (*Mutex) Unlock

func (m *Mutex) Unlock()

Jump to

Keyboard shortcuts

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