Versions in this module Expand all Collapse all v1 v1.0.0 Jan 7, 2023 Changes in this version + func FunctionLock(parent context.Context, lockKey any, fn lockFunction) context.Context + func Lock(parent context.Context, lockKey any) context.Context + func TimeLock(parent context.Context, lockKey any, t time.Time, opts ...TimestampOption) context.Context + func Unlock(parent context.Context, lockKey any) context.Context + func Unlocked(ctx context.Context, lockKey any) bool + func Value(ctx context.Context, key any) (any, bool) + func WithValue(parent context.Context, lockKey, key, value any) context.Context + type Container struct + func (c Container) Value(ctx context.Context) (any, bool) + type TimestampOption func(timestamp) timestamp + func TimeSource(fn func() time.Time) TimestampOption