OK, I have a Class for a Frame that is basically 24 labels in a stack like an old terminal Screen.
There are two Functions included in the Class: AddLine and Clear (Will add "Exit")
I want to launch an instance of this Class in it's own Thread and Pass Information to it.
I suspect I can do this with PubSub using three Messages: "Clear", "AddLine" and "Exit"
My problem is that the Long Running Process example has things backwards from what I need. The Example has the Worker Thread being the "Sender"
My Worker Thread needs to be the "Subscriber" and my "Main" Script needs to be the "Sender".
Once the Thread is Started and the Frame displayed in the Thread, I want to be able to "Send" 'AddLine' messages to the thread throughout the life of the Main Application and when I am ready to Close the Application "Send" an "Exit" message and shut everything down Gracefully.
This, to me, infers I would be "Listening" for three distinct messages, requiring three separate Publisher event monitors?
I suspect that I could also do thid using three events...