Is there a general solution to 'release the blocking code in a thread' problem?
I mean, in a worker thread I am using someObject.SomeMethod(), which blocks and is the only option I can use, and I want to stop that worker thread anytime from my main thread; even if the worker thread is blocked at the point where someObject.SomeMethod() is called.