iterativeRun

support.threading_util.iterativeRun(run_fn)

A decorator for running functions repeatedly inside a PausableThread. Allows one to pause and stop the thread while its repeatedly calling the overriden run function.

Parameters

run_fn – the overridden run function from PausableThread

Returns

callable