progctx

package
v0.0.0-...-565450b Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2023 License: BSD-3-Clause Imports: 4 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProgCtx

type ProgCtx struct {
	context.Context
	// contains filtered or unexported fields
}

func New

func New(parent context.Context) *ProgCtx

func (*ProgCtx) Cancel

func (ctx *ProgCtx) Cancel(err interface{})

func (*ProgCtx) Defer

func (ctx *ProgCtx) Defer(f func())

func (*ProgCtx) Wait

func (ctx *ProgCtx) Wait()

func (*ProgCtx) WaitAdd

func (ctx *ProgCtx) WaitAdd(name string, delta int)

func (*ProgCtx) WaitCount

func (ctx *ProgCtx) WaitCount() int

func (*ProgCtx) WaitDone

func (ctx *ProgCtx) WaitDone(name string)

Jump to

Keyboard shortcuts

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