Run the background updates when starting synapse.

This commit is contained in:
Mark Haines 2015-11-10 15:50:58 +00:00
parent 2ede7aa8a1
commit a412b9a465
4 changed files with 67 additions and 10 deletions

View file

@ -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):