I haven't found my exact situation for this situation. I searched on SO and every example seems to want to finish what they are doing first. Is there an event style thread.terminate command that will allow me to close a thread, even if it is currently making a database call? I don't mean like the following:
public void threadhere()
{
while (!variable)
{
do something;
}
end thread;
}
I mean more like:
public void threadhere
{
making a database call and the condition changes while querying database
so I will stop doing what I am doing and terminate the thread
}