Versions in this module Expand all Collapse all v0 v0.1.0 Sep 12, 2024 Changes in this version + var ErrChannelClosed = errors.New("channel is closed") + func Chan[T any](ctx context.Context, d time.Duration, c <-chan T) (T, error) + func Context(ctx context.Context, d time.Duration) (context.Context, *time.Timer) + func Func[T any](ctx context.Context, d time.Duration, fn func(context.Context) (T, error)) (T, error)