my codes as follows:
public delegate int DelegateFun(int a,int b);
DelegateFun dl = DataProcess;//DataProcess is a data procss function,and there is a block function in it
int a = 3;
int b= 4;
dl.BeginInvoke(a,b,null,null);
then,how i force to interrupt the DataProcess's running beforce it finish?
do i force to interrupt it as Thread using Thread.Abort?
What I have tried:
i look for solutions in network,someone said delegate function run in threadpool,so we don't control it.