summary refs log tree commit diff
path: root/synapse/util
diff options
context:
space:
mode:
authorMark Haines <mark.haines@matrix.org>2015-11-10 15:50:58 +0000
committerMark Haines <mark.haines@matrix.org>2015-11-10 15:50:58 +0000
commita412b9a465cb6a64f44e3656d8645977f43c275f (patch)
tree7b749e92ec5972fc0d1e300b678e755f5829734c /synapse/util
parentAdd background update task for reindexing event search (diff)
downloadsynapse-a412b9a465cb6a64f44e3656d8645977f43c275f.tar.xz
Run the background updates when starting synapse.
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):