mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-03 03:26:21 -04:00
Run the background updates when starting synapse.
This commit is contained in:
parent
2ede7aa8a1
commit
a412b9a465
4 changed files with 67 additions and 10 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue