napari.qt.threading.FunctionWorker#
- class napari.qt.threading.FunctionWorker(func: Callable[[_P], _R], *args, **kwargs)[source]#
Bases:
FunctionWorker[_R],_NotifyingMixinMethods
autoDelete(self)await_workers([msecs])Ask all workers to quit, and wait up to msec for quit.
create(functionToRun)quit()Send a request to abort the worker.
run()Start the worker.
setAutoDelete(self, _autoDelete)start()Start this worker in a thread and add it to the global threadpool.
work()Main method to execute the worker.
Attributes
Whether the worker has been requested to stop.
Whether the worker has been started.
Details