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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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