First preparations for moving webserver to Server process.

This commit is contained in:
Griatch 2013-05-22 18:18:50 +02:00
parent 60068771c7
commit 76fa0059ea
3 changed files with 48 additions and 27 deletions

View file

@ -467,9 +467,9 @@ def delay(delay=2, retval=None, callback=None):
"""
Delay the return of a value.
Inputs:
to_return (any) - this will be returned by this function after a delay
delay (int) - the delay in seconds
callback (func(r)) - if given, this will be called with the to_return after delay seconds
retval (any) - this will be returned by this function after a delay
callback (func(retval)) - if given, this will be called with retval after delay seconds
Returns:
deferred that will fire with to_return after delay seconds
"""