Hi folks, is there any way to kill a method while it is running? May I grab a ddp message/fiber by its connection id and then stop it?
I have a method on the server that does some time-consuming (often more than 10 seconds) fetching of hundreds of thousands of data. This method is called rather frequently (with different parameters).
Because I only need the result from the most recent call of this method, I want to kill the method whenever it is being called again. This would save enormous time. Is it possible to achieve this?
p.s. I’m using this.unblock() inside the method.