Documentation ¶
Index ¶
- func Cancel(ctx context.Context)
- func CancelAfterInactivity(ctx context.Context, key string, d time.Duration)
- func CancelContext(ctx context.Context) context.Context
- func SimpleKey(name string) interface{}
- func Tick(ctx context.Context, key string)
- func TickContext(ctx context.Context, key string) context.Context
- func WaitForInactivity(ctx context.Context, key string, d time.Duration)
- func WaitGroupAdd(ctx context.Context)
- func WaitGroupContext(ctx context.Context, desc ...string) context.Context
- func WaitGroupDone(ctx context.Context)
- func WaitGroupRun(ctx context.Context, f func())
- func WaitGroupRunAndCancelOnExit(ctx context.Context, f func())
- func WaitGroupRunUntilCancelled(ctx context.Context, f func())
- func WaitGroupWait(ctx context.Context, duration time.Duration, desc ...string)
- type Ticker
- type ValueKey
- type WaitGroup
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CancelAfterInactivity ¶
func WaitGroupAdd ¶ added in v0.2.0
func WaitGroupContext ¶ added in v0.2.0
func WaitGroupDone ¶ added in v0.2.0
func WaitGroupRun ¶ added in v0.2.0
func WaitGroupRunAndCancelOnExit ¶ added in v0.2.0
func WaitGroupRunUntilCancelled ¶ added in v0.2.0
Types ¶
type Ticker ¶
type Ticker struct {
// contains filtered or unexported fields
}
func (*Ticker) CancelAfterInactivity ¶
type ValueKey ¶ added in v0.2.0
type ValueKey interface { Name() string WithValue(ctx context.Context, value interface{}) context.Context Get(ctx context.Context) interface{} }
func NewValueKey ¶ added in v0.2.0
type WaitGroup ¶ added in v0.2.0
func NewWaitGroup ¶ added in v0.2.0
Click to show internal directories.
Click to hide internal directories.