summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorMark Haines <mark.haines@matrix.org>2015-05-05 17:45:11 +0100
committerMark Haines <mark.haines@matrix.org>2015-05-05 17:45:11 +0100
commitdeb0237166afe280847b625260620d8fb675f7d7 (patch)
treee14a73ce69ee0b2bd50f04e89679eb13bbc4a08d /synapse
parentCollect the invalidate callbacks on the transaction object rather than passin... (diff)
downloadsynapse-deb0237166afe280847b625260620d8fb675f7d7.tar.xz
Add some doc-string
Diffstat (limited to 'synapse')
-rw-r--r--synapse/storage/_base.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/synapse/storage/_base.py b/synapse/storage/_base.py

index ccf9697fa3..dbef179b21 100644 --- a/synapse/storage/_base.py +++ b/synapse/storage/_base.py
@@ -194,6 +194,10 @@ class LoggingTransaction(object): object.__setattr__(self, "after_callbacks", after_callbacks) def call_after(self, callback, *args): + """Call the given callback on the main twisted thread after the + transaction has finished. Used to invalidate the caches on the + correct thread. + """ self.after_callbacks.append((callback, args)) def __getattr__(self, name):