Helper class for handling the signals and slots when an action
is running. This class takes a generator and iterates it within the
model thread while taking care of Exceptions raised and ActionSteps
yielded by the generator.
This is class is intended for internal Camelot use only.
-
exception(exception_info)[source]
Handle an exception raised by the generator
-
exec_(flags=0)[source]
Reimplementation of exec_ to prevent the event loop being started
when exit has been called prior to calling exec_.
This can be the case when running in single threaded mode.
-
exit(return_code=0)[source]
Reimplementation of exit to store the return code
-
generator(generator)[source]
Handle the creation of the generator
-
next(yielded)[source]
Handle the result of the next call of the generator
Parameters: | yielded – the object that was yielded by the generator in the
model thread |