Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1003)

Issue 5755055: tomb: update API

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 2 months ago by rog
Modified:
13 years, 2 months ago
Reviewers:
mp+96158
Visibility:
Public.

Description

As discussed on IRC: Rename Fatal and Fatalf to Kill and Killf. Make zero-value of Tomb good to use, and as a consequence, make Dead and Dying into methods rather than fields. https://code.launchpad.net/~rogpeppe/tomb/update-api/+merge/96158 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : tomb: update API #

Total comments: 10

Patch Set 3 : tomb: update API #

Patch Set 4 : tomb: update API #

Total comments: 6

Patch Set 5 : tomb: update API #

Unified diffs Side-by-side diffs Delta from patch set Stats (+71 lines, -65 lines) Patch
M tomb.go View 1 2 3 4 2 chunks +48 lines, -38 lines 0 comments Download
M tomb_test.go View 1 2 3 4 4 chunks +23 lines, -27 lines 0 comments Download

Messages

Total messages: 10
rog
Please take a look.
13 years, 2 months ago (2012-03-06 15:46:11 UTC) #1
rog
Please take a look.
13 years, 2 months ago (2012-03-06 15:50:09 UTC) #2
niemeyer
https://codereview.appspot.com/5755055/diff/3001/tomb.go File tomb.go (right): https://codereview.appspot.com/5755055/diff/3001/tomb.go#newcode44 tomb.go:44: // created or already alive. Once Kill is called ...
13 years, 2 months ago (2012-03-06 16:07:34 UTC) #3
rog
Please take a look.
13 years, 2 months ago (2012-03-06 16:27:24 UTC) #4
rog
Please take a look.
13 years, 2 months ago (2012-03-06 16:30:18 UTC) #5
rog
much better with those changes, thanks. PTAL. https://codereview.appspot.com/5755055/diff/3001/tomb.go File tomb.go (right): https://codereview.appspot.com/5755055/diff/3001/tomb.go#newcode44 tomb.go:44: // created ...
13 years, 2 months ago (2012-03-06 16:30:41 UTC) #6
niemeyer
A couple of trivials, and should be ready to submit. https://codereview.appspot.com/5755055/diff/6003/tomb.go File tomb.go (right): https://codereview.appspot.com/5755055/diff/6003/tomb.go#newcode106 ...
13 years, 2 months ago (2012-03-06 17:06:54 UTC) #7
rog
Please take a look.
13 years, 2 months ago (2012-03-06 17:16:48 UTC) #8
rog
https://codereview.appspot.com/5755055/diff/6003/tomb.go File tomb.go (right): https://codereview.appspot.com/5755055/diff/6003/tomb.go#newcode106 tomb.go:106: t.init() On 2012/03/06 17:06:55, niemeyer wrote: > init isn't ...
13 years, 2 months ago (2012-03-06 17:17:33 UTC) #9
niemeyer
13 years, 2 months ago (2012-03-06 18:36:00 UTC) #10
*** Submitted:

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
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b