condctx

package
v0.11.4 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2023 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package condctx provides helpers for working with condition variables along with the standard "context" package and interface.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Notify

func Notify(ctx context.Context, cond *sync.Cond) func()

Notify will wake up all waiters of cond when the context is cancelled. To use this, callers should call Notify and then check ctx.Err in their condition loop for the condition variable.

The return value should be deferred to properly clean up resources associated with this function.

Types

This section is empty.

Jump to

Keyboard shortcuts

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