2012-10-09 21:02:12 -07:00

7 lines
187 B
Bash

// The first timer will expire ~2s after we start the
// program, but the second should be stopped before it has
// a chance to expire.
$ go run timers.go
Timer 1 expired
Timer 2 stopped