Skip to content

Worker

struct Worker : public BaseWorker<bool>

A worker that passes any data received in its queue to a callback function working asynchronously working in a separate thread.

Functions

Name Description
Worker Instantiate a worker with a callback function to work on data.

Function Details

Worker

Worker(const std::function<void()>& callback, int delay = -1, int repetitions = -1)

Instantiate a worker with a callback function to work on data. See Worker::WorkerBase for options

callback :

delay :

repetitions :