IOmniWorker: Where does the function go to execute inside the task?

I am creating an OmniWorker-Task to process some data.
Until now, the Task is able to receive and send messages from / to other tasks.

Now I need to implement the main function for this task. This function will work continuously and perform data processing, and messages will change its behavior.

But where do I put this main function?
Is there something like the “Execute” method for OmniWorker that I need to implement?

+3
source share
1 answer

, TOmniWorker "monolythic execute block + messaging". TOmniWorker , ( , , ) - Delphi.

( "!" ) , , . [ - , , Task.Comm.Receive.] , TOmniWorker , , .

+6

Source: https://habr.com/ru/post/1786714/


All Articles