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

Issue 57700044: voyeur package

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

Description

voyeur package The voyeur package is intended for use in concurrent environments where multiple people need to read and write a single value, and watchers want to be notified when changes occur to the value. https://code.launchpad.net/~natefinch/juju-core/032-voyeur/+merge/205379 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 12

Patch Set 2 : voyeur package #

Total comments: 30

Patch Set 3 : voyeur package #

Unified diffs Side-by-side diffs Delta from patch set Stats (+338 lines, -0 lines) Patch
A [revision details] View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
A utils/voyeur/value.go View 1 2 1 chunk +121 lines, -0 lines 0 comments Download
A utils/voyeur/value_test.go View 1 1 chunk +215 lines, -0 lines 0 comments Download

Messages

Total messages: 9
natefinch
Please take a look.
10 years, 2 months ago (2014-02-07 14:59:30 UTC) #1
rog
Looks great, thanks (well I would say that :-]), but a few more tests would ...
10 years, 2 months ago (2014-02-07 15:15:17 UTC) #2
natefinch
Please take a look. https://codereview.appspot.com/57700044/diff/1/utils/voyeur/value.go File utils/voyeur/value.go (right): https://codereview.appspot.com/57700044/diff/1/utils/voyeur/value.go#newcode59 utils/voyeur/value.go:59: return nil, false On 2014/02/07 ...
10 years, 2 months ago (2014-02-07 20:05:20 UTC) #3
dimitern
Looking good, apart from the unusual watcher implementation and a icky name :) Some thoughts ...
10 years, 2 months ago (2014-02-10 09:15:30 UTC) #4
natefinch
I'll look into making a couple of the modifications you suggested. https://codereview.appspot.com/57700044/diff/20001/utils/voyeur/value.go File utils/voyeur/value.go (right): ...
10 years, 2 months ago (2014-02-10 12:41:21 UTC) #5
rog
https://codereview.appspot.com/57700044/diff/20001/utils/voyeur/value.go File utils/voyeur/value.go (right): https://codereview.appspot.com/57700044/diff/20001/utils/voyeur/value.go#newcode37 utils/voyeur/value.go:37: v.val = val On 2014/02/10 09:15:30, dimitern wrote: > ...
10 years, 2 months ago (2014-02-10 12:52:12 UTC) #6
rog
https://codereview.appspot.com/57700044/diff/20001/utils/voyeur/value.go File utils/voyeur/value.go (right): https://codereview.appspot.com/57700044/diff/20001/utils/voyeur/value.go#newcode58 utils/voyeur/value.go:58: if v.closed { return v.val, !v.closed https://codereview.appspot.com/57700044/diff/20001/utils/voyeur/value.go#newcode77 utils/voyeur/value.go:77: // ...
10 years, 2 months ago (2014-02-10 13:32:14 UTC) #7
natefinch
Please take a look.
10 years, 2 months ago (2014-02-13 17:27:45 UTC) #8
rog
10 years, 2 months ago (2014-02-13 17:32:00 UTC) #9
On 2014/02/13 17:27:45, nate.finch wrote:
> Please take a look.

LGTM with a test that calls NewValue with a non-nil arg.
Sign in to reply to this message.

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