lp://staging/~niemeyer/tomb/err-dying
Created by
Gustavo Niemeyer
and last modified
- Get this branch:
- bzr branch lp://staging/~niemeyer/tomb/err-dying
Only
Gustavo Niemeyer
can upload to this branch. If you are
Gustavo Niemeyer
please log in for upload directions.
Branch merges
Propose for merging
No branches
dependent on this one.
- Gustavo Niemeyer: Pending requested
-
Diff: 176 lines (+63/-16)3 files modified.lbox (+1/-0)
tomb.go (+26/-7)
tomb_test.go (+36/-9)
Branch information
Recent revisions
- 13. By Roger Peppe
-
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
Branch metadata
- Branch format:
- Branch format 7
- Repository format:
- Bazaar repository format 2a (needs bzr 1.16 or later)
- Stacked on:
- lp://staging/tomb