Documentation ¶
Overview ¶
Package fetcher implements path segment fetching, verification and combination logic for SCIOND.
Index ¶
Constants ¶
View Source
const (
DefaultMinWorkerLifetime = 10 * time.Second
)
Variables ¶
This section is empty.
Functions ¶
func NewExtendedContext ¶
func NewExtendedContext(refCtx context.Context, minLifetime time.Duration) (context.Context, context.CancelFunc)
NewExtendedContext returns a new _independent_ context that can extend past refCtx's lifetime, guaranteeing a minimum lifetime of minLifetime. If refCtx has a deadline, the newly created context will have a deadline equal to the maximum of refCtx's deadline and (minLifetime + currentTime). If refCtx does not have a deadline, the function panics.
Because the returned context is independent, calling refCtx's cancellation function will not result in the cancellation of the returned context.
Types ¶
Click to show internal directories.
Click to hide internal directories.