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

Related bugs

Related blueprints

Branch information

Owner:
Gustavo Niemeyer
Project:
Tomb
Status:
Merged

Recent revisions

16. By Gustavo Niemeyer

Use a defer in Kill, as suggested by Frank.

15. By Gustavo Niemeyer

Added .lbox.

14. By Gustavo Niemeyer

Added ErrDying. Renamed ErrStillRunning to ErrStillAlive.

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

12. By Gustavo Niemeyer

Ported to current weekly.

11. By Gustavo Niemeyer

Fixed typo in Done doc.

10. By Gustavo Niemeyer

Clarified doc for Fatal.

9. By Gustavo Niemeyer

Simplified doc for Err.

8. By Gustavo Niemeyer

Simplified interface after some real use.

7. By Gustavo Niemeyer

s/nothing/struct{}/.

Branch metadata

Branch format:
Branch format 7
Repository format:
Bazaar repository format 2a (needs bzr 1.16 or later)
Stacked on:
lp://staging/tomb
This branch contains Public information 
Everyone can see this information.

Subscribers