executioncontext

package module
v0.0.0-...-c6eafd2 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2017 License: MIT Imports: 3 Imported by: 0

README

executioncontext

deprecated (panics) context for hierarchical cancellation and WaitGroup for cancellation confirmation, combined

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNilContext = errorf("ERR_NIL_CONTEXT")

ErrNilContext means we got a nil context while we shouldn't

Functions

This section is empty.

Types

type Context

type Context interface {
	Context() context.Context
	WaitGroup() WaitGroup
}

Context combination of context.Context & WaitGroup, an execution context

func New

func New(ctx context.Context) (Context, error)

New .

type WaitGroup

type WaitGroup interface {
	Add(delta int)
	Done()
	Wait()
}

WaitGroup interface for built-in WaitGroup

Jump to

Keyboard shortcuts

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