1
0
mirror of https://github.com/golang/go synced 2024-10-04 11:11:21 -06:00
go/src/pkg/time
Andrew Gerrand 1e66a21348 time: add After
Permits one to easily put a timeout in a select:

select {
case <-ch:
	// foo
case <-time.After(1e6):
	// bar
}

R=r, rog, rsc, sameer1, PeterGo, iant, nigeltao_gnome
CC=golang-dev
https://golang.org/cl/2321043
2010-10-11 13:45:26 +11:00
..
format.go 5g: register allocation bugs 2010-09-12 00:06:45 -04:00
Makefile build: no required environment variables 2010-08-18 10:08:49 -04:00
sleep_test.go time: add After 2010-10-11 13:45:26 +11:00
sleep.go time: add After 2010-10-11 13:45:26 +11:00
tick_test.go time.Ticker: fix bug arising when all tickers are dead. 2010-02-18 09:55:29 +11:00
tick.go once: replace all uses of package once with sync.Once. 2010-08-06 06:14:41 +10:00
time_test.go tests: fix prints 2010-09-23 13:48:56 +10:00
time.go time: do not segment time strings by character class. 2010-03-30 14:54:32 -07:00
zoneinfo_unix.go once: replace all uses of package once with sync.Once. 2010-08-06 06:14:41 +10:00
zoneinfo_windows.go fix windows build 2010-08-06 09:42:55 +10:00