Syntalos::detail::WorkerHolderBase

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 boolisThreadWorker() 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
WorkerEventsm_events

Public Functions Documentation

function WorkerHolderBase

WorkerHolderBase() =default

function ~WorkerHolderBase

virtual ~WorkerHolderBase()

function isThreadWorker

virtual bool isThreadWorker() const =0

True 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() =0

Run 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() const

Protected Attributes Documentation

variable m_events

WorkerEvents m_events;

Updated on 2026-11-26 at 18:54:14 +0000