Added the -1 default value to the iterations argument of start

This commit is contained in:
Anton Beloglazov 2012-09-25 16:24:18 +10:00
parent 4bd4698aa9
commit beb6700cd5

View File

@ -29,7 +29,7 @@ log = logging.getLogger(__name__)
@contract
def start(init_state, execute, config, time_interval, iterations):
def start(init_state, execute, config, time_interval, iterations=-1):
""" Start the processing loop.
:param init_state: A function accepting a config and