napari.qt.threading.GeneratorWorker#
- class napari.qt.threading.GeneratorWorker(func: Callable[_P, Generator[_Y, _S | None, _R]], *args, SignalsClass: type[WorkerBaseSignals] = <class 'superqt.utils._qthreading.GeneratorWorkerSignals'>, **kwargs)[source]#
Bases:
GeneratorWorker
[_Y
,_S
,_R
],_NotifyingMixin
Methods
autoDelete
(self)await_workers
([msecs])Ask all workers to quit, and wait up to msec for quit.
create
(functionToRun)pause
()Request to pause the worker.
quit
()Send a request to abort the worker.
resume
()Send a request to resume the worker.
run
()Start the worker.
send
(value)Send a value into the function (if a generator was used).
setAutoDelete
(self, _autoDelete)start
()Start this worker in a thread and add it to the global threadpool.
Request to pause the worker if playing or resume if paused.
work
()Core event loop that calls the original function.
Attributes
Whether the worker has been requested to stop.
Whether the worker is currently paused.
Whether the worker has been started.
Details