I start function A, execute some commands and than i need to stop this function while some event occurs. But this event will occur in function B.
When this event occur in function B, signal will be sent to function A which will be waiting for this to continue at work.
Also function B will send a string to function A.
I am new to this forum and also i am not very skilled programmer so if you could help me, show me some examples/tutorials how to do this, it will help me a lot.