-
Committer:
Gustavo Niemeyer
-
Author(s):
Roger Peppe
-
Date:
2012-03-06 18:35:38 UTC
-
mfrom:
(12.1.6 tomb)
-
Revision ID:
gustavo@niemeyer.net-20120306183538-fr9932h2eagc7fgm
tomb: update API
- Rename Fatal and Fatalf to Kill and Killf.
- The Stop error value is gone. Use nil now.
- Err will now return ErrStillRunning if the goroutine isn't dead
yet, which means a nil return reflects an actual nil Kill call.
- Make zero-value of Tomb good to use, and as a consequence, make
Dead and Dying into methods rather than fields.
R=niemeyer
CC=
https://codereview.appspot.com/5755055