From Thread A I wish to call MethodA()
asynchronously (such that it doesn't block Thread A) to be run on Thread B a specific thread that I have started, such that it interrupts what Thread B is doing.
Is this possible without having to actively poll for MethodA()
call requests in Thread B?
EDIT: more specifically, I wish for all calls to MethodA()
to be on Thread B.
EDIT 2: neither thread is a UI thread. Although I know Thread B is running, it would be nice to be able to return false if its not/not throw an exception.