summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2016-08-29 16:04:56 +0200
committerDimitri Sokolyuk <demon@dim13.org>2016-08-29 16:04:56 +0200
commit5b17177545f794c4be16c150caee302e0b3fa40d (patch)
treee3580904041e82bd454afb5a79b0ea9dd003d22d
parent156024c771e0f75c6b79aacfb36ce8cc79855c7e (diff)
wip
-rw-r--r--go/react/react.go9
1 files changed, 4 insertions, 5 deletions
diff --git a/go/react/react.go b/go/react/react.go
index ebe8e61..5771b41 100644
--- a/go/react/react.go
+++ b/go/react/react.go
@@ -55,7 +55,7 @@ func (r *react) CreateCompute1(c Cell, f func(int) int) ComputeCell {
<-ch.ok
}
for _, cb := range cc.cb {
- log.Println("cb #1", cb)
+ log.Println("run cb #1")
cb(cc.value)
}
}
@@ -84,7 +84,7 @@ func (r *react) CreateCompute2(c1, c2 Cell, f func(int, int) int) ComputeCell {
<-ch.ok
}
for _, cb := range cc.cb {
- log.Println("cb #2", cb, cc.value)
+ log.Println("run cb #2")
cb(cc.value)
}
}
@@ -122,9 +122,8 @@ func (c *inputCell) SetValue(i int) {
}
func (c *cell) Value() int {
- v := c.value
- log.Println("report", v)
- return v
+ log.Println("report", c.value)
+ return c.value
}
func Register(c Cell, ch com) {