Documentation
¶
Overview ¶
Package shutdownbound is the bound of the Shutdown of the store behind a resolver: what the first Shutdown call of the resolver fixes, whichever caller ends up running the store's Shutdown.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bound ¶
Bound is the instant of the first Shutdown call and its deadline (zero when it had none).
func (Bound) Context ¶
func (b Bound) Context(ctx context.Context, now time.Time, grace time.Duration) (context.Context, context.CancelFunc)
Context is the context of the Shutdown of the store: it does not end when the context of a caller does (another caller may wait for the result). It ends grace after the deadline of the first Shutdown call, or grace after that call when it had no deadline, so a store that stops only on cancellation does not stay pending for ever.