Documentation
¶
Overview ¶
Package xtime contains extensions to the standard library package time.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SleepContext ¶
SleepContext pauses the current goroutine for at least the duration d and returns nil, unless ctx expires in the mean time in which case it returns ctx.Err().
A negative or zero duration causes SleepContext to return nil immediately.
If there is less than d left until ctx's deadline, returns DeadlineTooSoonError immediately.
Types ¶
type DeadlineTooSoonError ¶
type DeadlineTooSoonError struct {
// contains filtered or unexported fields
}
func (DeadlineTooSoonError) Error ¶
func (err DeadlineTooSoonError) Error() string
Click to show internal directories.
Click to hide internal directories.