mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-02-07 03:40:14 +00:00
Stop using eventually
in OneShotObserverList
This commit is contained in:
parent
cc8c9c0bdf
commit
5974f5adf9
@ -61,7 +61,7 @@ class OneShotObserverList(object):
|
|||||||
|
|
||||||
def _fire(self, result):
|
def _fire(self, result):
|
||||||
for w in self._watchers:
|
for w in self._watchers:
|
||||||
eventually(w.callback, result)
|
w.callback(result)
|
||||||
del self._watchers
|
del self._watchers
|
||||||
self.__repr__ = self._fired_repr
|
self.__repr__ = self._fired_repr
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user