Documentation
¶
Overview ¶
Copyright (c) Microsoft Corporation. Licensed under the MIT License.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WallClock ¶
type WallClock interface {
WithTimeoutCause(
parent context.Context,
timeout time.Duration,
cause error,
) (context.Context, context.CancelFunc)
After(d time.Duration) <-chan time.Time
NewTimer(d time.Duration) Timer
Now() time.Time
}
WallClock abstracts a subset of functionality from packages context and time.
var Instance WallClock = wallClock{}
Instance is a WallClock singleton used for indirect time-based references to packages context and time. Test code can set the instance to interpose on functions and control apparent time.
Click to show internal directories.
Click to hide internal directories.