summary refs log tree commit diff
path: root/synapse/util
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2015-11-11 17:19:51 +0000
committerErik Johnston <erik@matrix.org>2015-11-11 17:19:51 +0000
commite21cef9bb56493cf05fa82e2d3262df213657cf6 (patch)
tree54fada4d427cfa90dc1a327ac01cc73c9a0fabad /synapse/util
parentMerge pull request #358 from matrix-org/daniel/publicwritable (diff)
parentFix param style to work on both sqlite and postgres (diff)
downloadsynapse-e21cef9bb56493cf05fa82e2d3262df213657cf6.tar.xz
Merge pull request #359 from matrix-org/markjh/incremental_indexing
Incremental background updates for db indexes
Diffstat (limited to 'synapse/util')
-rw-r--r--synapse/util/__init__.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/synapse/util/__init__.py b/synapse/util/__init__.py
index 1d123ccefc..d69c7cb991 100644
--- a/synapse/util/__init__.py
+++ b/synapse/util/__init__.py
@@ -53,6 +53,14 @@ class Clock(object):
         loop.stop()
 
     def call_later(self, delay, callback, *args, **kwargs):
+        """Call something later
+
+        Args:
+            delay(float): How long to wait in seconds.
+            callback(function): Function to call
+            *args: Postional arguments to pass to function.
+            **kwargs: Key arguments to pass to function.
+        """
         current_context = LoggingContext.current_context()
 
         def wrapped_callback(*args, **kwargs):