Syntalos::detail::WorkerHolderBase
Syntalos::detail::WorkerHolderBase
Type-erased owner of a module worker.
#include <moduleworker.h>
Inherited by Syntalos::detail::WorkerHolder< W >
Public Functions
| Name | |
|---|---|
| WorkerHolderBase() =default | |
| virtual | ~WorkerHolderBase() |
| virtual bool | isThreadWorker() const =0 True if the worker wants a dedicated thread, false if it is driven by events. |
| virtual std::expected< void, QString > | run() =0 Run the worker in the current thread. |
| const WorkerEvents & | events() const |
Protected Attributes
| Name | |
|---|---|
| WorkerEvents | m_events |
Public Functions Documentation
function WorkerHolderBase
WorkerHolderBase() =defaultfunction ~WorkerHolderBase
virtual ~WorkerHolderBase()function isThreadWorker
virtual bool isThreadWorker() const =0True if the worker wants a dedicated thread, false if it is driven by events.
Reimplemented by: Syntalos::detail::WorkerHolder::isThreadWorker
function run
virtual std::expected< void, QString > run() =0Run the worker in the current thread.
Return: The error the worker has failed with, if any.
Reimplemented by: Syntalos::detail::WorkerHolder::run
function events
inline const WorkerEvents & events() constProtected Attributes Documentation
variable m_events
WorkerEvents m_events;Updated on 2026-11-26 at 18:54:14 +0000