package
module
Version:
v1.0.0
Opens a new window with list of versions in this module.
Published: Mar 29, 2020
License: BSD-3-Clause
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 14
Opens a new window with list of known importers.
README
¶
time
Plus to the standard "time" package.
Featured
// SleepUntil sleeps until the specified time.
func SleepUntil(t time.Time) {}
LICENSE
BSD license
Documentation
¶
SleepUntil sleeps until the specified time.
SleepUntilWithCancel sleep until a specify time and returns nil, unless
the context is cancelled, in which case ctx.Err() is returned.
NowFunc has the signature of time.Now().
PresetNow Returns a NowFunc which returns the specific time.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.