diff options
author | Mark Haines <mark.haines@matrix.org> | 2015-05-05 17:45:11 +0100 |
---|---|---|
committer | Mark Haines <mark.haines@matrix.org> | 2015-05-05 17:45:11 +0100 |
commit | deb0237166afe280847b625260620d8fb675f7d7 (patch) | |
tree | e14a73ce69ee0b2bd50f04e89679eb13bbc4a08d | |
parent | Collect the invalidate callbacks on the transaction object rather than passin... (diff) | |
download | synapse-deb0237166afe280847b625260620d8fb675f7d7.tar.xz |
Add some doc-string
-rw-r--r-- | synapse/storage/_base.py | 4 |
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): |