diff options
Diffstat (limited to 'src/lib/time/sleep.go')
-rw-r--r-- | src/lib/time/sleep.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/time/sleep.go b/src/lib/time/sleep.go index 1ce58b291..8451c6d80 100644 --- a/src/lib/time/sleep.go +++ b/src/lib/time/sleep.go @@ -10,6 +10,8 @@ import ( "unsafe"; ) +// Sleep pauses the current goroutine for ns nanoseconds. +// It returns os.EINTR if interrupted. func Sleep(ns int64) *os.Error { var tv syscall.Timeval; syscall.Nstotimeval(ns, &tv); |