puzzlestream.backend.worker module¶
Background worker module.
contains PSWorker
-
class
puzzlestream.backend.worker.
PSWorker
(workerRegistrationFunction: Callable, startTimerFunction: Callable)[source]¶ Bases:
object
Background worker class.
Every Puzzlestream module has exactly one worker that does all the heavy lifting in a background process without blocking the UI.
-
enqueue
(streamSection: puzzlestream.backend.streamsection.PSStreamSection, currentID: int, lastID: int)[source]¶ Enqueue worker to be executed whenever there is a free slot.
-
property
finished
¶ Signal that is emitted when the worker has finished (PSSignal).
-
property
newStdout
¶ Signal that is emitted when there is new output (PSSignal).
-
property
progressUpdate
¶ Signal that is emitted when progress has changed (PSSignal).
-