~dave-cheney/tomb/001-fix-data-race-on-reason

Viewing all changes in revision 13.

  • 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

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: