Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ToTimespec ¶
ToTimespec converts a Deadline to a unix.Timespec. If the Deadline has a valid, non-zero deadline, it converts the deadline time to a Timespec. Returns nil if no deadline is set or if the deadline is zero.
Types ¶
type Deadline ¶
Deadline is an interface representing something that may provide a deadline. Examples include context.Context or testing.T.
type NoDeadline ¶
type NoDeadline struct{}
NoDeadline is a type that implements the Deadline interface but always indicates no deadline.
Click to show internal directories.
Click to hide internal directories.