git://git.novaco.in
/
p2pool.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
penalization and sending txs ahead of shares
[p2pool.git]
/
p2pool
/
util
/
variable.py
diff --git
a/p2pool/util/variable.py
b/p2pool/util/variable.py
index
f11b94f
..
f9af6db
100644
(file)
--- a/
p2pool/util/variable.py
+++ b/
p2pool/util/variable.py
@@
-10,6
+10,9
@@
class Event(object):
self._once = None
self.times = 0
+ def run_and_watch(self, func):
+ func()
+ return self.watch(func)
def watch(self, func):
id = self.id_generator.next()
self.observers[id] = func