contextx

package
v0.0.0-...-fab4c1e Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2023 License: MIT Imports: 1 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsCancelled

func IsCancelled(ctx context.Context) bool

IsCancelled returns true iff the context is cancelled.

func WithQuitCancel

func WithQuitCancel(ctx context.Context, quit <-chan struct{}) (context.Context, context.CancelFunc)

WithQuitCancel creates a cancellable context, which is also closed if the quit chan closes.

Types

This section is empty.

Jump to

Keyboard shortcuts

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